mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
Fixed usage of stripslashes in xajax.php
This commit is contained in:
parent
8123e956d4
commit
b2d782dcd9
15
xajax.php
15
xajax.php
@ -83,17 +83,6 @@ function doXMLHTTP()
|
||||
$argList = func_get_args();
|
||||
$arg0 = array_shift($argList);
|
||||
|
||||
if(get_magic_quotes_gpc()) {
|
||||
foreach($argList as $key => $value) {
|
||||
if(is_array($value)) {
|
||||
foreach($argList as $key1 => $value1) {
|
||||
$argList[$key][$key1] = stripslashes($value1);
|
||||
}
|
||||
} else {
|
||||
$argList[$key] = stripslashes($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
//error_log("xajax_doXMLHTTP('$arg0',...)");
|
||||
|
||||
if (strpos($arg0,'::') !== false && strpos($arg0,'.') === false) // static method name app_something::method
|
||||
@ -119,6 +108,10 @@ function doXMLHTTP()
|
||||
);
|
||||
include('./header.inc.php');
|
||||
|
||||
if(get_magic_quotes_gpc()) {
|
||||
$argList = array_stripslashes($argList);
|
||||
}
|
||||
|
||||
// now the header is included, we can set the charset
|
||||
$GLOBALS['xajax']->configure('characterEncoding',translation::charset());
|
||||
define('XAJAX_DEFAULT_CHAR_ENCODING',translation::charset());
|
||||
|
Loading…
Reference in New Issue
Block a user