admin管理员组文章数量:1295910
The following URL call, is redirected and processed by the 404.php
page, indented to capture the s
parameter.
/?s=par
For some reason, while try to processing the s
parameter, none of the following alternatives succeed in reading the string 'par'
,
echo 's0: "'.$filename0.'"<br>';
$filename1=htmlspecialchars($_GET['s']);
echo 's1: "'.$filename1.'"<br>';
$filename2=get_query_var('s');
echo 's2: "'.$filename2.'"<br>';
It fails when using doc\
, an empty folder, redirecting to the 404.php
.
When replacing that string with 404.php
or with any not existing folder or file, the problem is not experienced.
.php?s=par
/?s=par
What I am missing? how should I debug this?
本文标签: phpReading URL Parameters
版权声明:本文标题:php - Reading URL Parameters 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741618378a2388664.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论