[fusion-commits] r1653 - trunk/MapGuide/php

svn_fusion at osgeo.org svn_fusion at osgeo.org
Fri Nov 7 15:57:30 EST 2008


Author: pagameba
Date: 2008-11-07 15:57:30 -0500 (Fri, 07 Nov 2008)
New Revision: 1653

Modified:
   trunk/MapGuide/php/LoadMap.php
Log:
Fixes #161.  addslashes was necessary when we were echo outputting the JSON response but var2json now escapes values so adding slashes for text is no longer required and in fact wrong because var2json escapes the slashes (causing this bug).

Modified: trunk/MapGuide/php/LoadMap.php
===================================================================
--- trunk/MapGuide/php/LoadMap.php	2008-11-07 20:44:08 UTC (rev 1652)
+++ trunk/MapGuide/php/LoadMap.php	2008-11-07 20:57:30 UTC (rev 1653)
@@ -320,8 +320,8 @@
                     $labelText = $label->length==1? $label->item(0)->nodeValue: "";
                     $filterText = $filter->length==1? $filter->item(0)->nodeValue: "";
                     $styleObj = NULL;
-                    $styleObj->legendLabel = addslashes(trim($labelText));
-                    $styleObj->filter = addslashes(trim($filterText));
+                    $styleObj->legendLabel = trim($labelText);
+                    $styleObj->filter = trim($filterText);
                     $styleObj->geometryType = ($ts+1);
                     $styleObj->categoryIndex = $catIndex++;
                     array_push($scaleRangeObj->styles, $styleObj);



More information about the fusion-commits mailing list