@@ -75,7 +75,9 @@ public function initialize(sfEventDispatcher $dispatcher, $parameters = array(),
75
75
parent ::initialize ($ dispatcher , $ parameters , $ attributes , $ options );
76
76
77
77
// GET parameters
78
- $ this ->getParameters = get_magic_quotes_gpc () ? sfToolkit::stripslashesDeep ($ _GET ) : $ _GET ;
78
+ // REMARK: Since PHP 5.4 get_magic_quotes_gpc always returns false... Since 7.4 it's deprecated.
79
+ //$this->getParameters = get_magic_quotes_gpc() ? sfToolkit::stripslashesDeep($_GET) : $_GET;
80
+ $ this ->getParameters = $ _GET ;
79
81
$ this ->parameterHolder ->add ($ this ->getParameters );
80
82
81
83
$ postParameters = $ _POST ;
@@ -148,7 +150,9 @@ public function initialize(sfEventDispatcher $dispatcher, $parameters = array(),
148
150
$ this ->setMethod (self ::GET );
149
151
}
150
152
151
- $ this ->postParameters = get_magic_quotes_gpc () ? sfToolkit::stripslashesDeep ($ postParameters ) : $ postParameters ;
153
+ // REMARK: Since PHP 5.4 get_magic_quotes_gpc always returns false... Since 7.4 it's deprecated.
154
+ //$this->postParameters = get_magic_quotes_gpc() ? sfToolkit::stripslashesDeep($postParameters) : $postParameters;
155
+ $ this ->postParameters = $ postParameters ;
152
156
$ this ->parameterHolder ->add ($ this ->postParameters );
153
157
154
158
if ($ formats = $ this ->getOption ('formats ' ))
@@ -600,7 +604,9 @@ public function getCookie($name, $defaultValue = null)
600
604
601
605
if (isset ($ _COOKIE [$ name ]))
602
606
{
603
- $ retval = get_magic_quotes_gpc () ? sfToolkit::stripslashesDeep ($ _COOKIE [$ name ]) : $ _COOKIE [$ name ];
607
+ // REMARK: Since PHP 5.4 get_magic_quotes_gpc always returns false... Since 7.4 it's deprecated.
608
+ //$retval = get_magic_quotes_gpc() ? sfToolkit::stripslashesDeep($_COOKIE[$name]) : $_COOKIE[$name];
609
+ $ retval = $ _COOKIE [$ name ];
604
610
}
605
611
606
612
return $ retval ;
0 commit comments