Fix potential issue with incoming visitor name

This commit is contained in:
Fedor A. Fetisov 2019-01-13 19:24:26 +03:00
parent 4f9b48135c
commit 410b925b8d

View File

@ -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])) {