|
|
@ -606,11 +606,6 @@ class xajax |
|
|
|
{ |
|
|
|
{ |
|
|
|
for ($i = 0; $i < sizeof($aArgs); $i++) |
|
|
|
for ($i = 0; $i < sizeof($aArgs); $i++) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// If magic quotes is on, then we need to strip the slashes from the args |
|
|
|
|
|
|
|
if (get_magic_quotes_gpc() == 1 && is_string($aArgs[$i])) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$aArgs[$i] = stripslashes($aArgs[$i]); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (stristr($aArgs[$i],"<xjxobj>") != false) |
|
|
|
if (stristr($aArgs[$i],"<xjxobj>") != false) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$aArgs[$i] = $this->_xmlToArray("xjxobj",$aArgs[$i]); |
|
|
|
$aArgs[$i] = $this->_xmlToArray("xjxobj",$aArgs[$i]); |
|
|
@ -1073,18 +1068,6 @@ class xajax |
|
|
|
$aArray[$key] = $this->_decodeUTF8Data($value); |
|
|
|
$aArray[$key] = $this->_decodeUTF8Data($value); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
// If magic quotes is on, then we need to strip the slashes from the |
|
|
|
|
|
|
|
// array values because of the parse_str pass which adds slashes |
|
|
|
|
|
|
|
if (get_magic_quotes_gpc() == 1) { |
|
|
|
|
|
|
|
$newArray = array(); |
|
|
|
|
|
|
|
foreach ($aArray as $sKey => $sValue) { |
|
|
|
|
|
|
|
if (is_string($sValue)) |
|
|
|
|
|
|
|
$newArray[$sKey] = stripslashes($sValue); |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
$newArray[$sKey] = $sValue; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
$aArray = $newArray; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return $aArray; |
|
|
|
return $aArray; |
|
|
|