Browse Source

correct check username pattern

Clément 9 years ago
parent
commit
648fcb63b5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Controllers/userController.php

+ 1 - 1
app/Controllers/userController.php

@@ -35,7 +35,7 @@ class FreshRSS_user_Controller extends Minz_ActionController {
 	}
 	}
 
 
 	public static function checkUsername($username) {
 	public static function checkUsername($username) {
-		$match = '/^[a-zA-Z_]{1,38}$/';
+		$match = '/^[0-9a-zA-Z_]{1,38}$/';
 		return preg_match($match, $username) === 1;
 		return preg_match($match, $username) === 1;
 	}
 	}