[Mapbender-commits] r4782 - in branches/2.6/http: classes
javascripts php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Oct 19 04:34:02 EDT 2009
Author: christoph
Date: 2009-10-19 04:34:00 -0400 (Mon, 19 Oct 2009)
New Revision: 4782
Modified:
branches/2.6/http/classes/class_locale.php
branches/2.6/http/javascripts/mod_insertLayerPreviewIntoDb.php
branches/2.6/http/php/mb_validateSession.php
Log:
removed/added session_write_close() at (in)appropriate locations
Modified: branches/2.6/http/classes/class_locale.php
===================================================================
--- branches/2.6/http/classes/class_locale.php 2009-10-15 13:26:41 UTC (rev 4781)
+++ branches/2.6/http/classes/class_locale.php 2009-10-19 08:34:00 UTC (rev 4782)
@@ -150,7 +150,7 @@
* @returns true if the language is supported; otherwise false
*/
function isKnownLanguage($languageId) {
- if ($this->knownLocales == null) {
+ if ($this->knownLanguages == null) {
$this->setKnownLanguages();
}
if (array_key_exists($languageId, $this->knownLanguages)) {
Modified: branches/2.6/http/javascripts/mod_insertLayerPreviewIntoDb.php
===================================================================
--- branches/2.6/http/javascripts/mod_insertLayerPreviewIntoDb.php 2009-10-15 13:26:41 UTC (rev 4781)
+++ branches/2.6/http/javascripts/mod_insertLayerPreviewIntoDb.php 2009-10-19 08:34:00 UTC (rev 4782)
@@ -59,7 +59,7 @@
echo "<script>alert('Could not find wms: ".$wms_getmap."');</script>";
}
else {
- session_write_close();
+// session_write_close();
$con1 = new connector($mapurl);
$fileNameMap = $layer_id."_layer_map_preview.png";
$fileContentMap = $con1->file;
Modified: branches/2.6/http/php/mb_validateSession.php
===================================================================
--- branches/2.6/http/php/mb_validateSession.php 2009-10-15 13:26:41 UTC (rev 4781)
+++ branches/2.6/http/php/mb_validateSession.php 2009-10-19 08:34:00 UTC (rev 4782)
@@ -30,6 +30,7 @@
$_SESSION['mb_user_ip'] != $_SERVER['REMOTE_ADDR']) {
$e = new mb_exception("mb_validateSession.php: Invalid user: " . $_SESSION["mb_user_id"]);
+ session_write_close();
header("Location: " . LOGIN);
die();
}
More information about the Mapbender_commits
mailing list