Truncate usernames received by post/get to help avoid abuse.
This commit is contained in:
parent
9494d6e1a6
commit
d1a6b271ca
|
@ -58,6 +58,9 @@ if ($setcookies) {
|
|||
$name = $_COOKIE["mail_name"];
|
||||
}
|
||||
|
||||
// Truncate username at 30 characters to avoid abuse
|
||||
$name = substr($name, 0, 30);
|
||||
|
||||
$logged_in = false;
|
||||
if(trim($name) != '') {
|
||||
$logged_in = verify_logged_in(trim(strtolower($name)));
|
||||
|
|
Loading…
Reference in New Issue