[Mapbender-commits] r3264 - branches/2.5/http/include
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Nov 28 04:19:37 EST 2008
Author: christoph
Date: 2008-11-28 04:19:37 -0500 (Fri, 28 Nov 2008)
New Revision: 3264
Modified:
branches/2.5/http/include/dyn_js.php
Log:
http://trac.osgeo.org/mapbender/ticket/332
Modified: branches/2.5/http/include/dyn_js.php
===================================================================
--- branches/2.5/http/include/dyn_js.php 2008-11-28 09:18:20 UTC (rev 3263)
+++ branches/2.5/http/include/dyn_js.php 2008-11-28 09:19:37 UTC (rev 3264)
@@ -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