appdb/include filter.php

WineHQ wineowner at wine.codeweavers.com
Fri Aug 24 23:26:55 CDT 2007


ChangeSet ID:	31348
CVSROOT:	/opt/cvs-commit
Module name:	appdb
Changes by:	wineowner at winehq.org	2007/08/24 23:26:55

Modified files:
	include        : filter.php 

Log message:
	Chris Morgan <cmorgan at alum.wpi.edu>
	Filter should ignore google search variables

Patch: http://cvs.winehq.org/patch.py?id=31348

Old revision  New revision  Changes     Path
 1.15          1.16          +4 -1       appdb/include/filter.php

Index: appdb/include/filter.php
diff -u -p appdb/include/filter.php:1.15 appdb/include/filter.php:1.16
--- appdb/include/filter.php:1.15	25 Aug 2007  4:26:55 -0000
+++ appdb/include/filter.php	25 Aug 2007  4:26:55 -0000
@@ -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



More information about the wine-cvs mailing list