mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-26 00:37:18 +00:00
fix: The get_magic_quotes_gpc function was removed in PHP 8.0, so check before calling it.
This commit is contained in:
parent
cbf4682ad5
commit
fb5e694ef7
1 changed files with 1 additions and 1 deletions
|
@ -958,7 +958,7 @@ class Helper extends CakeObject {
|
|||
* @return void
|
||||
*/
|
||||
protected function _clean() {
|
||||
if (get_magic_quotes_gpc()) {
|
||||
if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) {
|
||||
$this->_cleaned = stripslashes($this->_tainted);
|
||||
} else {
|
||||
$this->_cleaned = $this->_tainted;
|
||||
|
|
Loading…
Reference in a new issue