mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
Fix remote security risk, pointed out by Wolfram Kriesing
This commit is contained in:
parent
1cb07caf63
commit
22aee18f0b
1 changed files with 3 additions and 1 deletions
|
@ -534,7 +534,9 @@ class DB
|
|||
}
|
||||
foreach ($opts as $opt) {
|
||||
list($key, $value) = explode('=', $opt);
|
||||
$parsed[$key] = urldecode($value);
|
||||
if (!isset($parsed[$key])) { // don't allow params overwrite
|
||||
$parsed[$key] = urldecode($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue