0
有人能告诉我为什么下面给出一个错误404如何允许http://作为控制器段之后的GET变量的值?
http://example.com/welcome/?=http://
但任何别的东西正常工作,如:
http://example.com/welcome/?=hppt://
http://example.com/welcome/?=htpp://
http://example.com/welcome/?=pthh://
而且这也适用:
http://example.com/welcome/?=http:/ (with single slash)
请帮助,我遇到了严重的麻烦,并且我将因为这个错误而重塑一个多月的工作......
你问[同样的问题(http://stackoverflow.com/questions/29398913/codeigniter-allow-http-in-get-variable您的查询字符串)只有3小时的两倍。您需要使用Jonathan提及的[urlencode](http://php.net/manual/en/function.urlencode.php)。 – 2015-04-02 05:11:48