[mapguide-commits] r9940 - sandbox/jng/vanilla_swig/Web/src/mapviewerphp
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Mon May 23 05:37:08 PDT 2022
Author: jng
Date: 2022-05-23 05:37:08 -0700 (Mon, 23 May 2022)
New Revision: 9940
Modified:
sandbox/jng/vanilla_swig/Web/src/mapviewerphp/buffer.php
Log:
Fix AJAX viewer buffer tool. Comment out string un-escaping code that no longer works because get_magic_quotes_gpc has been removed. Time will tell if we can just remove this outright instead of commenting out.
Modified: sandbox/jng/vanilla_swig/Web/src/mapviewerphp/buffer.php
===================================================================
--- sandbox/jng/vanilla_swig/Web/src/mapviewerphp/buffer.php 2022-05-23 11:55:14 UTC (rev 9939)
+++ sandbox/jng/vanilla_swig/Web/src/mapviewerphp/buffer.php 2022-05-23 12:37:08 UTC (rev 9940)
@@ -389,6 +389,7 @@
//unescape strings
//
+ /*
if(ini_get("magic_quotes_sybase") == "1")
$selText = str_replace("''", "'", $selText);
else if(get_magic_quotes_gpc() == "1")
@@ -399,6 +400,7 @@
//remove additional backslash
$selText = str_replace("\\", "", $selText);
}
+ */
if((int)$foretrans < 0 || (int)$foretrans > 100)
$foretrans = 50;
More information about the mapguide-commits
mailing list