mirror of
https://github.com/e107inc/e107.git
synced 2025-07-09 09:13:25 +02:00
Issue #1378 - OpenID login failing.
This commit is contained in:
@ -3211,9 +3211,7 @@ class e107
|
|||||||
{
|
{
|
||||||
if(($key == "QUERY_STRING") && (
|
if(($key == "QUERY_STRING") && (
|
||||||
strpos(strtolower($input),"../../")!==FALSE
|
strpos(strtolower($input),"../../")!==FALSE
|
||||||
|| strpos(strtolower($input),"=http")!==FALSE
|
|| strpos(strtolower($input),"php:")!==FALSE
|
||||||
|| strpos(strtolower($input),strtolower("http%3A%2F%2F"))!==FALSE
|
|
||||||
|| strpos(strtolower($input),"php:")!==FALSE
|
|
||||||
|| strpos(strtolower($input),"data:")!==FALSE
|
|| strpos(strtolower($input),"data:")!==FALSE
|
||||||
|| strpos(strtolower($input),strtolower("%3Cscript"))!==FALSE
|
|| strpos(strtolower($input),strtolower("%3Cscript"))!==FALSE
|
||||||
))
|
))
|
||||||
@ -3226,6 +3224,20 @@ class e107
|
|||||||
}
|
}
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(($key == "QUERY_STRING") && empty($_GET['hauth.done']) && ( // exception for hybridAuth.
|
||||||
|
strpos(strtolower($input),"=http")!==FALSE
|
||||||
|
|| strpos(strtolower($input),strtolower("http%3A%2F%2F"))!==FALSE
|
||||||
|
))
|
||||||
|
{
|
||||||
|
|
||||||
|
header('HTTP/1.0 400 Bad Request', true, 400);
|
||||||
|
if(deftrue('e_DEBUG'))
|
||||||
|
{
|
||||||
|
echo "Bad Request: ".__METHOD__." : ". __LINE__;
|
||||||
|
}
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
if(($key == "HTTP_USER_AGENT") && strpos($input,"libwww-perl")!==FALSE)
|
if(($key == "HTTP_USER_AGENT") && strpos($input,"libwww-perl")!==FALSE)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user