@@ -67,12 +67,8 @@ public function initialize(sfEventDispatcher $dispatcher, $parameters = array(),
67
67
), $ options );
68
68
parent ::initialize ($ dispatcher , $ parameters , $ attributes , $ options );
69
69
70
- // GET parameters
71
- if (version_compare (PHP_VERSION , '5.4.0-dev ' , '< ' ) && get_magic_quotes_gpc ()) {
72
- $ this ->getParameters = sfToolkit::stripslashesDeep ($ _GET );
73
- } else {
74
- $ this ->getParameters = $ _GET ;
75
- }
70
+ $ this ->getParameters = $ _GET ;
71
+
76
72
$ this ->parameterHolder ->add ($ this ->getParameters );
77
73
78
74
$ postParameters = $ _POST ;
@@ -140,11 +136,7 @@ public function initialize(sfEventDispatcher $dispatcher, $parameters = array(),
140
136
$ this ->setMethod (self ::GET );
141
137
}
142
138
143
- if (version_compare (PHP_VERSION , '5.4.0-dev ' , '< ' ) && get_magic_quotes_gpc ()) {
144
- $ this ->postParameters = sfToolkit::stripslashesDeep ($ postParameters );
145
- } else {
146
- $ this ->postParameters = $ postParameters ;
147
- }
139
+ $ this ->postParameters = $ postParameters ;
148
140
149
141
$ this ->parameterHolder ->add ($ this ->postParameters );
150
142
@@ -553,11 +545,7 @@ public function getCookie($name, $defaultValue = null)
553
545
$ retval = $ defaultValue ;
554
546
555
547
if (isset ($ _COOKIE [$ name ])) {
556
- if (version_compare (PHP_VERSION , '5.4.0-dev ' , '< ' ) && get_magic_quotes_gpc ()) {
557
- $ retval = sfToolkit::stripslashesDeep ($ _COOKIE [$ name ]);
558
- } else {
559
- $ retval = $ _COOKIE [$ name ];
560
- }
548
+ $ retval = $ _COOKIE [$ name ];
561
549
}
562
550
563
551
return $ retval ;
0 commit comments