mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
removed now global available array_stripslashes
This commit is contained in:
parent
4b108026c6
commit
401d9dcf21
@ -9,12 +9,6 @@
|
||||
* @version $Id$
|
||||
*/
|
||||
|
||||
// strip slashes from _GET parameters, if someone still has magic_quotes_gpc on
|
||||
if (get_magic_quotes_gpc() && $_GET)
|
||||
{
|
||||
$_GET = array_stripslashes($_GET);
|
||||
}
|
||||
|
||||
if (isset($_GET['app']))
|
||||
{
|
||||
$app = $_GET['app'];
|
||||
@ -33,6 +27,12 @@ $GLOBALS['egw_info']['flags'] = array(
|
||||
);
|
||||
include ('../header.inc.php');
|
||||
|
||||
// strip slashes from _GET parameters, if someone still has magic_quotes_gpc on
|
||||
if (get_magic_quotes_gpc() && $_GET)
|
||||
{
|
||||
$_GET = array_stripslashes($_GET);
|
||||
}
|
||||
|
||||
// no need to keep the session open (it stops other parallel calls)
|
||||
$GLOBALS['egw']->session->commit_session();
|
||||
|
||||
@ -202,23 +202,3 @@ function gdVersion($user_ver = 0)
|
||||
$gd_ver = $match[0];
|
||||
return $match[0];
|
||||
}
|
||||
|
||||
/**
|
||||
* applies stripslashes recursivly on each element of an array
|
||||
*
|
||||
* @param array &$var
|
||||
* @return array
|
||||
*/
|
||||
function array_stripslashes($var)
|
||||
{
|
||||
if (!is_array($var))
|
||||
{
|
||||
return stripslashes($var);
|
||||
}
|
||||
foreach($var as $key => $val)
|
||||
{
|
||||
$var[$key] = is_array($val) ? array_stripslashes($val) : stripslashes($val);
|
||||
}
|
||||
return $var;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user