filter_gpc() should ignore any bugzilla parameters to avoid errors when these cookies are set
This commit is contained in:
@@ -42,8 +42,19 @@ function filter_gpc()
|
||||
util_show_error_page_and_exit("Fatal error: ".$aKeys[$i]." should be an array.");
|
||||
break;
|
||||
default:
|
||||
if($aKeys[$i]!="whq_appdb" && $aKeys[$i]!="MAX_FILE_SIZE") // whq_appdb is the name of the session cookie
|
||||
if($aKeys[$i]!="whq_appdb" && // don't filter the appdb session cookie
|
||||
|
||||
// or any bugzilla cookies
|
||||
$aKeys[$i]!="BUGLIST" &&
|
||||
$aKeys[$i]!="DEFAULTFORMAT" &&
|
||||
$aKeys[$i]!="Bugzilla_login" &&
|
||||
$aKeys[$i]!="LASTORDER" &&
|
||||
$aKeys[$i]!="Bugzilla_logincookie" &&
|
||||
$aKeys[$i]!="DEFAULTFORMAT" &&
|
||||
$aKeys[$i]!="MAX_FILE_SIZE")
|
||||
{
|
||||
util_show_error_page_and_exit("Fatal error: type of variable ".$aKeys[$i]." is not recognized.");
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user