Skip to content
Extraits de code Groupes Projets
Valider f7543161 rédigé par sgiehl's avatar sgiehl
Parcourir les fichiers

allow umlauts in logins

parent 248a72e9
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -589,7 +589,7 @@ class Piwik
$l = strlen($userLogin);
if (!($l >= $loginMinimumLength
&& $l <= $loginMaximumLength
&& (preg_match('/^[A-Za-z0-9_.@+-]*$/D', $userLogin) > 0))
&& (preg_match('/^[A-Za-zÄäÖöÜüß0-9_.@+-]*$/D', $userLogin) > 0))
) {
throw new Exception(Piwik::translate('UsersManager_ExceptionInvalidLoginFormat', array($loginMinimumLength, $loginMaximumLength)));
}
......
......@@ -125,6 +125,7 @@ class PiwikTest extends IntegrationTestCase
'aa',
'aaa',
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
'äÄüÜöÖß',
'shoot_puck@the-goal.com',
);
foreach ($valid as $key => $value) {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter