[Mapbender-commits] r4334 - branches/2.6/http/include

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Jul 10 11:25:24 EDT 2009


Author: christoph
Date: 2009-07-10 11:25:24 -0400 (Fri, 10 Jul 2009)
New Revision: 4334

Modified:
   branches/2.6/http/include/dyn_js.php
Log:


Modified: branches/2.6/http/include/dyn_js.php
===================================================================
--- branches/2.6/http/include/dyn_js.php	2009-07-10 15:22:29 UTC (rev 4333)
+++ branches/2.6/http/include/dyn_js.php	2009-07-10 15:25:24 UTC (rev 4334)
@@ -44,6 +44,9 @@
 		if (is_numeric(stripslashes($row["var_value"]))) {
 			echo $row["var_name"]." = ".stripslashes($row["var_value"]).";\n";
 		}
+		elseif (strpos(stripslashes($row["var_value"]), "[") === 0 || strpos(stripslashes($row["var_value"]), "{") === 0) {
+			echo $row["var_name"]." = ".stripslashes($row["var_value"]).";\n";
+		}
 		else {
 			echo $row["var_name"]." = '".str_replace(array('"',"'", "\r", "\n", "\0"), array('\"','\\\'','\r', '\n', '\0'), stripslashes($row["var_value"]))."';\n";
 		}



More information about the Mapbender_commits mailing list