所以我试图在DOM元素返回的字符串中找到几个特殊字符,例如{,$
当我跑
if(strpos("$", $u) === FALSE AND strpos("{", $u) === FALSE AND $u != "#") {
echo "Attempting {$u} ecoded: ".urlencode($u)."<br/>";
return true;
}
但是,当我运行它时,它会打印出来:
Attempting register.php ecoded: register.php
Attempting {$url} ecoded: %7B%24url%7D
Attempting $authUrl ecoded: %24authUrl
Attempting services.php ecoded: services.php
所以我尝试使用 HEX 值和 ASCII 但仍然没有运气!