From 22600d0098e123bae072ea80b43cde5f6bd62607 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 11 Jun 2010 10:54:27 +0000 Subject: [PATCH] removed array_stripslashes function, which is now in common_functions.inc.php --- admin/remote.php | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/admin/remote.php b/admin/remote.php index 0ade9ee5ca..c55cff5757 100644 --- a/admin/remote.php +++ b/admin/remote.php @@ -88,31 +88,6 @@ if (get_magic_quotes_gpc()) $data = array_stripslashes($data); } -/** - * Strip all slashes from an array - * - * @param mixed $subject - * @return mixed - */ -function array_stripslashes($subject) -{ - if (is_string($subject)) - { - return stripslashes($subject); - } - if (!is_array($subject)) - { - return ($subject); - } - $ret = array(); - foreach ($subject as $key => $value) - { - $ret[$key] = array_stripslashes($value); - } - return $ret; -} - -// instanciate comand and run it $cmd = admin_cmd::instanciate($data); $cmd->check_remote_access($_REQUEST['secret'],$config_passwd);