mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-10-03 09:49:14 +02:00
ensure key is cast to string, fixes #1435
This commit is contained in:
parent
93a2b97d69
commit
cf83e3825f
2 changed files with 2 additions and 0 deletions
|
@ -83,6 +83,7 @@ class Request
|
|||
{
|
||||
foreach ($_GET as $key => $value) {
|
||||
// only return if value is empty and key is 16 hex chars
|
||||
$key = (string) $key;
|
||||
if (($value === '') && strlen($key) === 16 && ctype_xdigit($key)) {
|
||||
return $key;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue