Add an option to prevent filtering of cookies in the case where multiple web apps are hosted
on the same virtualhost
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
* global params
|
* global params
|
||||||
*/
|
*/
|
||||||
define("APPDB_DEBUG","0"); //turns debugging on/off
|
define("APPDB_DEBUG","0"); //turns debugging on/off
|
||||||
|
define("APPDB_DONT_CLEAR_COOKIES_VAR","0"); // set to 1 if you have more than one Web application on the same virtual host
|
||||||
define("APPDB_THUMBNAIL_WIDTH","128"); // width of the screenshot's thumbnails
|
define("APPDB_THUMBNAIL_WIDTH","128"); // width of the screenshot's thumbnails
|
||||||
define("APPDB_THUMBNAIL_HEIGHT","128"); // height of the screenshot's thumbnails
|
define("APPDB_THUMBNAIL_HEIGHT","128"); // height of the screenshot's thumbnails
|
||||||
define("APPDB_SCREENSHOT_MAXWIDTH","1024"); // width of the screenshot's thumbnails
|
define("APPDB_SCREENSHOT_MAXWIDTH","1024"); // width of the screenshot's thumbnails
|
||||||
|
|||||||
@@ -44,16 +44,8 @@ function filter_gpc()
|
|||||||
util_show_error_page_and_exit("Fatal error: ".$aKeys[$i]." should be an array.");
|
util_show_error_page_and_exit("Fatal error: ".$aKeys[$i]." should be an array.");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if($aKeys[$i]!="whq_appdb" && // don't filter the appdb session cookie
|
// don't filter the AppDB session cookie and MAX_FILE_SIZE
|
||||||
|
if($aKeys[$i]!="whq_appdb" && $aKeys[$i]!="MAX_FILE_SIZE")
|
||||||
// or any bugzilla cookies
|
|
||||||
$aKeys[$i]!="BUGLIST" &&
|
|
||||||
$aKeys[$i]!="DEFAULTFORMAT" &&
|
|
||||||
$aKeys[$i]!="Bugzilla_login" &&
|
|
||||||
$aKeys[$i]!="LASTORDER" &&
|
|
||||||
$aKeys[$i]!="Bugzilla_logincookie" &&
|
|
||||||
$aKeys[$i]!="DEFAULTFORMAT" &&
|
|
||||||
$aKeys[$i]!="MAX_FILE_SIZE")
|
|
||||||
{
|
{
|
||||||
util_show_error_page_and_exit("Fatal error: type of variable ".$aKeys[$i]." is not recognized.");
|
util_show_error_page_and_exit("Fatal error: type of variable ".$aKeys[$i]." is not recognized.");
|
||||||
}
|
}
|
||||||
@@ -66,6 +58,7 @@ function filter_gpc()
|
|||||||
$_REQUEST = array();
|
$_REQUEST = array();
|
||||||
$_POST = array();
|
$_POST = array();
|
||||||
$_GET = array();
|
$_GET = array();
|
||||||
|
if(APPDB_DONT_CLEAR_COOKIES_VAR != "1")
|
||||||
$_COOKIES = array();
|
$_COOKIES = array();
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user