[Mapbender-commits] r5718 - trunk/mapbender/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Mar 2 10:30:59 EST 2010


Author: christoph
Date: 2010-03-02 10:30:59 -0500 (Tue, 02 Mar 2010)
New Revision: 5718

Modified:
   trunk/mapbender/http/plugins/mb_cookie.js
Log:


Modified: trunk/mapbender/http/plugins/mb_cookie.js
===================================================================
--- trunk/mapbender/http/plugins/mb_cookie.js	2010-03-02 15:28:47 UTC (rev 5717)
+++ trunk/mapbender/http/plugins/mb_cookie.js	2010-03-02 15:30:59 UTC (rev 5718)
@@ -52,14 +52,13 @@
 	var i, j;
 	
 	for (i = 0; i < cookieData.length; i++) {
-		var cookieName = new RegExp(mod_mapCookie_cookieName);
+		var cookieName = new RegExp(mod_mapCookie_cookieName + "=");
 		
 		if(!cookieData[i].match(cookieName)) {
 			continue;
 		}
 		cookieExists = true;
-		var pattern = new RegExp(cookieName + "=");
-		var json = cookieData[i].replace(pattern,'');
+		var json = cookieData[i].replace(cookieName,'');
 		var storedMapState = $.parseJSON(json);
 		if (!storedMapState) {
 			return;



More information about the Mapbender_commits mailing list