Compare commits

...

1 commit
v0.3.0 ... main

Author SHA1 Message Date
b2c7df32eb
Fix username validation in account edit
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2022-01-04 01:33:51 +01:00

View file

@ -65,7 +65,7 @@ abstract class FormData
{
$username = self::validateMailAddress($username, $required, 'Username');
if (strpos($username, '%') !== false) {
if ($username !== null && strpos($username, '%') !== false) {
throw new InputValidationError('Username must not contain the wildcard character "%" (use a wildcard alias instead).');
}
return $username;