mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-07 16:24:43 +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) {
|
if ($user_name == $default_name) {
|
||||||
$temp = Request::createFromGlobals()->query->get('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])) {
|
if (isset($_COOKIE[USERID_COOKIE_NAME])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user