mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
fix: Checking with get_magic_quotes_gpc() is no longer necessary.
This commit is contained in:
parent
85452fd81c
commit
94f73e75e6
1 changed files with 1 additions and 5 deletions
|
@ -958,11 +958,7 @@ class Helper extends CakeObject {
|
|||
* @return void
|
||||
*/
|
||||
protected function _clean() {
|
||||
if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) {
|
||||
$this->_cleaned = stripslashes($this->_tainted);
|
||||
} else {
|
||||
$this->_cleaned = $this->_tainted;
|
||||
}
|
||||
$this->_cleaned = $this->_tainted;
|
||||
|
||||
$this->_cleaned = str_replace(array("&", "<", ">"), array("&amp;", "&lt;", "&gt;"), $this->_cleaned);
|
||||
$this->_cleaned = preg_replace('#(&\#*\w+)[\x00-\x20]+;#u', "$1;", $this->_cleaned);
|
||||
|
|
Loading…
Reference in a new issue