【发布时间】:2009-07-06 23:55:32
【问题描述】:
给定 hello.php:
<?php echo "Hello"; ?>
渲染页面工作正常并返回Hello,但是
http://example.com/hello.php?test=http%3a//whatever.com
返回 403 禁止。但奇怪的是,使 http 的第一个字母大写可以正常工作:
http://example.com/hello.php?test=Http%3a//whatever.com
仅供参考,斜线的百分比编码也是 403s:
http://example.com/hello.php?test=http%3a%2f%2fwhatever.com
我开始怀疑这可能是Passenger(我用来服务RoR)的问题
【问题讨论】:
标签: php query-string