mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 05:20:30 +03:00
Fix potential issue with incoming visitor name
This commit is contained in:
parent
4f9b48135c
commit
410b925b8d
@ -572,7 +572,7 @@ function visitor_from_request()
|
||||
|
||||
if ($user_name == $default_name) {
|
||||
$temp = Request::createFromGlobals()->query->get('name');
|
||||
$user_name = $temp ? $temp : $user_name;
|
||||
$user_name = (isset($temp) && ($temp !== '')) ? $temp : $user_name;
|
||||
}
|
||||
|
||||
if (isset($_COOKIE[USERID_COOKIE_NAME])) {
|
||||
|
Loading…
Reference in New Issue
Block a user