Professional Documents
Culture Documents
XSS
XSS
php')
{
$url =$protocol.''.$_SERVER['HTTP_HOST'].substr($_SERVER['REQUEST_URI'], 0,-9);
header("Location:$url");
}
else if(substr($_SERVER['REQUEST_URI'], -8) !== 'shop.php')
{
$url =$protocol.''.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
// $domain = $_SERVER['HTTP_HOST'];
// $url = "http://" . $domain . $_SERVER['REQUEST_URI'];
$url= substr($url, 0, strpos($url, "?"));
header("Location:$url");
}
else
{
$url =$protocol.''.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
// $domain = $_SERVER['HTTP_HOST'];
// $url = "http://" . $domain . $_SERVER['REQUEST_URI'];
// $url= substr($url, 0, strpos($url, "?"));
// header("Location:$url");