mirror of https://github.com/BOINC/boinc.git
web: fix bug that allowed HTML tags in user names
This commit is contained in:
parent
61913b181f
commit
206c1c6b75
|
@ -26,7 +26,7 @@ $name = post_str("name");
|
||||||
if (strlen($name)==0) {
|
if (strlen($name)==0) {
|
||||||
error_page(tra("You must supply a name for your account"));
|
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"));
|
error_page(tra("HTML tags not allowed in name"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue