summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas V.V.Cox <cox@php.net>2002-02-01 16:36:32 +0000
committerTomas V.V.Cox <cox@php.net>2002-02-01 16:36:32 +0000
commit22aee18f0bc4d7d316811cfcf9ddb808440a4df1 (patch)
treea0aab92be323d5a79bde1744a6236c1c46956896
parent1cb07caf6308efb06ce7341a54391354bb8a92de (diff)
downloadphp-git-22aee18f0bc4d7d316811cfcf9ddb808440a4df1.tar.gz
Fix remote security risk, pointed out by Wolfram Kriesing
-rw-r--r--pear/DB.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/pear/DB.php b/pear/DB.php
index 05c871f701..cd89cf75d0 100644
--- a/pear/DB.php
+++ b/pear/DB.php
@@ -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);
+ }
}
}
}