Exclude GPC values that start with 'Dialog', these are used by Xinha and we don't want to modify that code. Also exclude

PHPSESSID, this is a convenience for developers as php uses this key for its default session management and we really don't
mind if it is defined or not as we use our own session handlers
This commit is contained in:
Chris Morgan
2006-07-15 05:16:37 +00:00
committed by WineHQ
parent e1711a2cdb
commit ed0c692744

View File

@@ -45,11 +45,13 @@ function filter_gpc()
break;
default:
// don't filter the AppDB session cookie and MAX_FILE_SIZE
if($aKeys[$i]!="whq_appdb" && $aKeys[$i]!="MAX_FILE_SIZE")
{
// and the DialogX values that xinha uses
if($aKeys[$i]!="whq_appdb" && $aKeys[$i]!="MAX_FILE_SIZE" && $aKeys[$i]!="PHPSESSID"
&& strpos($aKeys[$i], "Dialog") == 0)
{
util_show_error_page_and_exit("Fatal error: type of variable ".$aKeys[$i]." is not recognized.");
}
break;
break;
}
}