diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/functions_user.inc.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php index 090c2e701..3c99c4785 100644 --- a/include/functions_user.inc.php +++ b/include/functions_user.inc.php @@ -112,6 +112,10 @@ function register_user($login, $password, $mail_address, { array_push($errors, l10n('this login is already used')); } + if ($login != strip_tags($login)) + { + array_push($errors, l10n('html tags are not allowed in login')); + } $mail_error = validate_mail_address(null, $mail_address); if ('' != $mail_error) { |