From fd8fd2c7321b889c98f34531f1bb85de6fc77b8f Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Sat, 25 Aug 2007 04:26:55 +0000 Subject: [PATCH] Filter should ignore google search variables --- include/filter.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/filter.php b/include/filter.php index 14e3ae3..37edf6e 100644 --- a/include/filter.php +++ b/include/filter.php @@ -37,7 +37,10 @@ function filter_gpc() // against a value, otherwise if strpos() returns false indicating that // the value wasn't found strpos(something) == 0 will still be true 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 // NOTE: we do not strip html tags or trim any Xinha variables