Filter should ignore google search variables

This commit is contained in:
Chris Morgan
2007-08-25 04:26:55 +00:00
committed by WineHQ
parent 2eb1d01026
commit fd8fd2c732

View File

@@ -37,7 +37,10 @@ function filter_gpc()
// against a value, otherwise if strpos() returns false indicating that // against a value, otherwise if strpos() returns false indicating that
// the value wasn't found strpos(something) == 0 will still be true // the value wasn't found strpos(something) == 0 will still be true
if((strpos($aKeys[$i], "Dialog") === 0) || if((strpos($aKeys[$i], "Dialog") === 0) ||
(strpos($aKeys[$i], "XinhaColorPicker") === 0)) // Xinha variables (strpos($aKeys[$i], "XinhaColorPicker") === 0) || // Xinha variables
($aKeys[$i] == "cx") || // google custom search variable
($aKeys[$i] == "cof")) // google custom search variable
{ {
// copy the key over to the clean array // copy the key over to the clean array
// NOTE: we do not strip html tags or trim any Xinha variables // NOTE: we do not strip html tags or trim any Xinha variables