Home >Backend Development >PHP Tutorial >After adding mod_encoding module to apache2.2, php5.2.0 has a bug in url processing_PHP tutorial
The problem is that mod_encoding has already processed the url first, and PHP solved it again
For example
x.php?s=%252B%2F%2B%2F
Then $_GET['s'] gets is
+/ /
urlencode("+") = %2B
urlencode("%2B") = %252B
So, this url was decoded twice
First The second time is
urldecode( "%252B%2F%2B%2F") = %2B/+/
urldecode( "%2B/+/") = +/ /
Solution
Modification httpd.conf Move
EncodingEngine on
to the required visualHost. This cannot coexist with the php script.