[mapguide-commits] r10049 - trunk/MgDev/Web/src/mapadmin

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Apr 6 07:58:25 PDT 2023


Author: jng
Date: 2023-04-06 07:58:24 -0700 (Thu, 06 Apr 2023)
New Revision: 10049

Modified:
   trunk/MgDev/Web/src/mapadmin/serverdatafunctions.php
Log:
Make CleanUpMagicQuotes() in serverdatafunctions.php do nothing. The get_magic_quotes_gpc() has been removed and PHP 8 migration discussions around this function suggest to just treat as though this function now returns false, which in our case means this CleanUpMagicQuotes() function now does nothing.

Fixes #2868

Modified: trunk/MgDev/Web/src/mapadmin/serverdatafunctions.php
===================================================================
--- trunk/MgDev/Web/src/mapadmin/serverdatafunctions.php	2023-04-04 17:14:58 UTC (rev 10048)
+++ trunk/MgDev/Web/src/mapadmin/serverdatafunctions.php	2023-04-06 14:58:24 UTC (rev 10049)
@@ -33,8 +33,7 @@
 
     function CleanUpMagicQuotes( &$path )
     {
-        if ( get_magic_quotes_gpc() )
-            $path = str_replace('\\\\', '\\', $path );
+        
     }
 
     define( 'ID_SORT_COLUMN',               'id' );



More information about the mapguide-commits mailing list