我是wondering...my的朋友,我正在就这件事进行辩论。有没有什么东西我可以在url中传递给回声呼叫(就是说"Yay土豆!“的那个抱歉,不清楚)?
<?
if(eregi("potato",$_GET[id])) {
echo("<p>Awww no potatoes :c </3</p>");
exit();
}
$_GET[id] = urldecode($_GET[id]);
if($_GET[id] == "potato")
{
echo "<p>Yay potatoes!!!!!</p>";
}
?>发布于 2013-05-04 12:28:15
是。您可以对一个字符(或更多)进行双重编码
?id=%2570otatoPHP将解码第一个,并为您提供:
$_GET['id'] = "%70otato"这将在不退出的情况下传递eregi()。然后,在上面运行urldecode(),得到potato。
耶,土豆。代码面板示例:http://codepad.org/IYwizCXK
https://stackoverflow.com/questions/16370532
复制相似问题