[fusion-commits] r1720 - trunk/common/php

svn_fusion at osgeo.org svn_fusion at osgeo.org
Thu Dec 18 14:08:14 EST 2008


Author: madair
Date: 2008-12-18 14:08:14 -0500 (Thu, 18 Dec 2008)
New Revision: 1720

Modified:
   trunk/common/php/Utilities.php
Log:
closes #197: patch applied to trunk

Modified: trunk/common/php/Utilities.php
===================================================================
--- trunk/common/php/Utilities.php	2008-12-18 19:06:32 UTC (rev 1719)
+++ trunk/common/php/Utilities.php	2008-12-18 19:08:14 UTC (rev 1720)
@@ -65,6 +65,7 @@
     if ($domElement->nodeType == XML_TEXT_NODE) {
         /* text node, just return content */
         $text = trim($domElement->textContent);
+        $text = addslashes($text);
         if ($text != '') {
             $result = '"'.$text.'"';
         } else {
@@ -93,6 +94,7 @@
                 }
                 if ($child->nodeType == XML_TEXT_NODE) {
                     $text = trim($child->textContent);
+                    $text = addslashes($text);
                     if ($text == '') {
                         continue;
                     }



More information about the fusion-commits mailing list