Index: branches/RC/core/kernel/utility/http_query.php =================================================================== diff -u -r8929 -r9240 --- branches/RC/core/kernel/utility/http_query.php (.../http_query.php) (revision 8929) +++ branches/RC/core/kernel/utility/http_query.php (.../http_query.php) (revision 9240) @@ -91,8 +91,13 @@ $this->AddAllVars(); $this->specialsToRemove = $this->Get('remove_specials'); - if($this->specialsToRemove) - { + if ($this->specialsToRemove) { + foreach ($this->specialsToRemove as $prefix_special => $flag) { + if (strpos($prefix_special, '.') === false) { + unset($this->specialsToRemove[$prefix_special]); + trigger_error('Incorrect usage of "remove_specials['.$prefix_special.']" field (no special found)', E_USER_WARNING); + } + } $this->_Params = $this->removeSpecials($this->_Params); } ini_set('magic_quotes_gpc', 0); @@ -102,12 +107,10 @@ { $ret = Array(); $removed = false; - foreach($this->specialsToRemove as $prefix_special => $flag) - { - if($flag) - { + foreach ($this->specialsToRemove as $prefix_special => $flag) { + if ($flag) { $removed = true; - list($prefix,$special) = explode('.',$prefix_special, 2); + list ($prefix,$special) = explode('.', $prefix_special, 2); foreach ($array as $key => $val) { $new_key = preg_match("/^".$prefix."[._]{1}".$special."(.*)/", $key, $regs) ? $prefix.$regs[1] : $key; $ret[$new_key] = is_array($val) ? $this->removeSpecials($val) : $val;