mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
Pass $filter to remove_slashes (thanks to juzna)
This commit is contained in:
@@ -27,9 +27,10 @@ function escape_string($val) {
|
||||
|
||||
/** Disable magic_quotes_gpc
|
||||
* @param array e.g. (&$_GET, &$_POST, &$_COOKIE)
|
||||
* @param bool whether to leave values as is
|
||||
* @return null modified in place
|
||||
*/
|
||||
function remove_slashes($process) {
|
||||
function remove_slashes($process, $filter = false) {
|
||||
if (get_magic_quotes_gpc()) {
|
||||
while (list($key, $val) = each($process)) {
|
||||
foreach ($val as $k => $v) {
|
||||
|
Reference in New Issue
Block a user