From 15cd979264cc25bfc7fa08c01db41ea2a90f542c Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Fri, 29 Jun 2007 02:20:11 +0000 Subject: [PATCH] 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. --- include/filter.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/filter.php b/include/filter.php index de98d47..8db7e99 100644 --- a/include/filter.php +++ b/include/filter.php @@ -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