web: fix bug that allowed HTML tags in user names

This commit is contained in:
David Anderson 2013-05-14 22:11:22 -07:00
parent 61913b181f
commit 206c1c6b75
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ $name = post_str("name");
if (strlen($name)==0) {
error_page(tra("You must supply a name for your account"));
}
if ($new_name != sanitize_tags($new_name)) {
if ($name != sanitize_tags($name)) {
error_page(tra("HTML tags not allowed in name"));
}