[Mapbender-commits] r3263 - trunk/mapbender/http/include
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Nov 28 04:18:20 EST 2008
Author: christoph
Date: 2008-11-28 04:18:20 -0500 (Fri, 28 Nov 2008)
New Revision: 3263
Modified:
trunk/mapbender/http/include/dyn_js.php
Log:
http://trac.osgeo.org/mapbender/ticket/332
Modified: trunk/mapbender/http/include/dyn_js.php
===================================================================
--- trunk/mapbender/http/include/dyn_js.php 2008-11-26 08:24:13 UTC (rev 3262)
+++ trunk/mapbender/http/include/dyn_js.php 2008-11-28 09:18:20 UTC (rev 3263)
@@ -45,7 +45,7 @@
echo $row["var_name"]." = ".stripslashes($row["var_value"]).";\n";
}
else {
- echo $row["var_name"]." = '".stripslashes($row["var_value"])."';\n";
+ 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