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.
This commit is contained in:
Chris Morgan
2007-06-29 02:20:11 +00:00
committed by WineHQ
parent 52c0e75af9
commit 15cd979264

View File

@@ -34,7 +34,8 @@ function filter_gpc()
// NOTE: we must use === when comparing the return value of strpos // NOTE: we must use === when comparing the return value of strpos
// 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) // Xinha variables if((strpos($aKeys[$i], "Dialog") === 0) ||
(strpos($aKeys[$i], "XinhaColorPicker") === 0)) // Xinha variables
{ {
// 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