PHP error

Function get_magic_quotes_gpc() is deprecated

/home/dobrosakha/dobrosakha.ru/docs/old/framework/web/CHttpRequest.php(119)

107         parent::init();
108         $this->normalizeRequest();
109     }
110 
111     /**
112      * Normalizes the request data.
113      * This method strips off slashes in request data if get_magic_quotes_gpc() returns true.
114      * It also performs CSRF validation if {@link enableCsrfValidation} is true.
115      */
116     protected function normalizeRequest()
117     {
118         // normalize request
119         if(function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc())
120         {
121             if(isset($_GET))
122                 $_GET=$this->stripSlashes($_GET);
123             if(isset($_POST))
124                 $_POST=$this->stripSlashes($_POST);
125             if(isset($_REQUEST))
126                 $_REQUEST=$this->stripSlashes($_REQUEST);
127             if(isset($_COOKIE))
128                 $_COOKIE=$this->stripSlashes($_COOKIE);
129         }
130 
131         if($this->enableCsrfValidation)

Stack Trace

#7
+
 /home/dobrosakha/dobrosakha.ru/docs/old/index.php(13): YiiBase::createWebApplication("/home/dobrosakha/dobrosakha.ru/docs/old/protected/config/main.ph...")
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-19 05:46:57 Apache/2.4.53 (Red Hat Enterprise Linux 8) PHP/7.4.29 Yii Framework/1.1.13