ChangeSet ID: 26550
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner(a)winehq.org 2006/07/15 00:16:37
Modified files:
include : filter.php
Log message:
Chris Morgan <cmorgan(a)alum.wpi.edu>
Exclude GPC values that start with 'Dialog', these are used by Xinha and we don't want to modify that code. Also exclude
PHPSESSID, this is a convenience for developers as php uses this key for its default session management and we really don't
mind if it is defined or not as we use our own session handlers
Patch: http://cvs.winehq.org/patch.py?id=26550
Old revision New revision Changes Path
1.6 1.7 +5 -3 appdb/include/filter.php
Index: appdb/include/filter.php
diff -u -p appdb/include/filter.php:1.6 appdb/include/filter.php:1.7
--- appdb/include/filter.php:1.6 15 Jul 2006 5:16:37 -0000
+++ appdb/include/filter.php 15 Jul 2006 5:16:37 -0000
@@ -45,11 +45,13 @@ function filter_gpc()
break;
default:
// don't filter the AppDB session cookie and MAX_FILE_SIZE
- if($aKeys[$i]!="whq_appdb" && $aKeys[$i]!="MAX_FILE_SIZE")
- {
+ // and the DialogX values that xinha uses
+ if($aKeys[$i]!="whq_appdb" && $aKeys[$i]!="MAX_FILE_SIZE" && $aKeys[$i]!="PHPSESSID"
+ && strpos($aKeys[$i], "Dialog") == 0)
+ {
util_show_error_page_and_exit("Fatal error: type of variable ".$aKeys[$i]." is not recognized.");
}
- break;
+ break;
}
}