开发者

phpinfo() in query_string clear $_GET variables

开发者 https://www.devze.com 2023-04-11 17:45 出处:网络
Hi im trying to make a form with a textbox to search words and functions. but when i search phpinfo( or phpinfo() all $_GET variables are empty.

Hi im trying to make a form with a textbox to search words and functions.

but when i search phpinfo( or phpinfo() all $_GET variables are empty. for examp开发者_如何转开发le

<form name="search-form" method="GET" action"results.php">
<input name="search-input" value = "" type="text"/>
<input name="search-submit" value ="Submit" type="submit"/>
</form>

if i search anything and print

print_r($_GET);

works but when i search phpinfo( or phpinfo() and i print with print_r($_GET) returns array() all the times.

why is this happen?


You should ask your hosting provider. The symptoms suggest there's a security module out there (maybe mod_security) filtering out your query strings with a black list.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号