mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-08 06:59:46 +01:00
removed array_stripslashes function, which is now in common_functions.inc.php
This commit is contained in:
parent
9593134a7c
commit
c34031bdee
@ -88,31 +88,6 @@ if (get_magic_quotes_gpc())
|
|||||||
$data = array_stripslashes($data);
|
$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 = admin_cmd::instanciate($data);
|
||||||
|
|
||||||
$cmd->check_remote_access($_REQUEST['secret'],$config_passwd);
|
$cmd->check_remote_access($_REQUEST['secret'],$config_passwd);
|
||||||
|
Loading…
Reference in New Issue
Block a user