mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
XSS vulnerability fix , thanks Max Boll
This commit is contained in:
parent
3722335f80
commit
f6f372f1f4
1 changed files with 2 additions and 2 deletions
|
@ -5798,7 +5798,7 @@ function getDeviceID($useRandomString = true) {
|
|||
$device
|
||||
);
|
||||
$device .= '-' . intval(User::getId());
|
||||
return preg_replace($pattern, '', $device);
|
||||
return preg_replace($pattern, '-', $device);
|
||||
}
|
||||
|
||||
$cookieName = "yptDeviceID";
|
||||
|
@ -5818,7 +5818,7 @@ function getDeviceID($useRandomString = true) {
|
|||
}
|
||||
$_COOKIE[$cookieName] = $_GET[$cookieName];
|
||||
}
|
||||
return preg_replace($pattern, '', $_COOKIE[$cookieName]);
|
||||
return preg_replace($pattern, '-', $_COOKIE[$cookieName]);
|
||||
}
|
||||
|
||||
function deviceIdToObject($deviceID) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue