ChangeSet ID: 31232
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner(a)winehq.org 2007/06/28 21:20:11
Modified files:
include : filter.php
Log message:
Chris Morgan <cmorgan(a)alum.wpi.edu>
Exclude 'XinhaColorPicker' get/post/cookie variable from normal filtering. Fixes a bug where
using the color picker resulted in an appdb error message until the cookie was removed.
Patch: http://cvs.winehq.org/patch.py?id=31232
Old revision New revision Changes Path
1.13 1.14 +2 -1 appdb/include/filter.php
Index: appdb/include/filter.php
diff -u -p appdb/include/filter.php:1.13 appdb/include/filter.php:1.14
--- appdb/include/filter.php:1.13 29 Jun 2007 2:20:11 -0000
+++ appdb/include/filter.php 29 Jun 2007 2:20:11 -0000
@@ -34,7 +34,8 @@ function filter_gpc()
// NOTE: we must use === when comparing the return value of strpos
// 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) // Xinha variables
+ if((strpos($aKeys[$i], "Dialog") === 0) ||
+ (strpos($aKeys[$i], "XinhaColorPicker") === 0)) // Xinha variables
{
// copy the key over to the clean array
// NOTE: we do not strip html tags or trim any Xinha variables