[Mapbender-commits] r4779 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Oct 15 06:39:17 EDT 2009
Author: christoph
Date: 2009-10-15 06:39:16 -0400 (Thu, 15 Oct 2009)
New Revision: 4779
Modified:
trunk/mapbender/http/php/mb_validateSession.php
Log:
Modified: trunk/mapbender/http/php/mb_validateSession.php
===================================================================
--- trunk/mapbender/http/php/mb_validateSession.php 2009-10-15 10:36:45 UTC (rev 4778)
+++ trunk/mapbender/http/php/mb_validateSession.php 2009-10-15 10:39:16 UTC (rev 4779)
@@ -29,6 +29,7 @@
Mapbender::session()->get('mb_user_ip') != $_SERVER['REMOTE_ADDR']) {
$e = new mb_exception("mb_validateSession.php: Invalid user: " . Mapbender::session()->get("mb_user_id"));
+ session_write_close();
header("Location: " . LOGIN);
die();
}
@@ -36,13 +37,13 @@
//
// set the global var gui_id
//
-if (!$gui_id) {
+if (!isset($gui_id)) {
$e = new mb_notice("gui id not set");
- if ($_REQUEST["guiID"]) {
+ if (isset($_REQUEST["guiID"])) {
$gui_id = $_REQUEST["guiID"];
$e = new mb_notice("gui id set to guiID: " . $gui_id);
}
- elseif ($_REQUEST["gui_id"]) {
+ elseif (isset($_REQUEST["gui_id"])) {
$gui_id = $_REQUEST["gui_id"];
$e = new mb_notice("gui id set to gui_id: " . $gui_id);
}
@@ -54,7 +55,7 @@
//
// set the global var e_id
//
-if (!$e_id) {
+if (!isset($e_id)) {
if (isset($_REQUEST["elementID"])) {
$e_id = $_REQUEST["elementID"];
}
@@ -79,4 +80,4 @@
$self = $_SERVER["PHP_SELF"] . "?" . $urlParameters;
$e = new mb_notice("mb_validateSession.php: GUI: " . $gui_id . ", checking file " . $_SERVER["PHP_SELF"] . "...session valid.");
-?>
\ No newline at end of file
+?>
More information about the Mapbender_commits
mailing list