Este código te puede ser útil:
Código PHP:
Ver original echo "<script>window.location='Logout.php'</script>";
} else if (strpos($pass,'=') == true or
strpos($pass,'<') == true or
strpos($pass,'>') == true or
strpos($pass,'"') == true or
strpos($pass,';') == true or
strpos($usr,"'") == true) { echo "<script>window.location='Logout.php'</script>";
} else{
echo "<script>window.location='Home.php'</script>";
}