[Mapbender-commits] r3882 - branches/2.6/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Apr 16 04:07:49 EDT 2009


Author: verenadiewald
Date: 2009-04-16 04:07:49 -0400 (Thu, 16 Apr 2009)
New Revision: 3882

Modified:
   branches/2.6/http/php/mod_wfs.php
Log:
function htmlentities for wfs_conf_element f_form_element_html 

Modified: branches/2.6/http/php/mod_wfs.php
===================================================================
--- branches/2.6/http/php/mod_wfs.php	2009-04-16 08:06:37 UTC (rev 3881)
+++ branches/2.6/http/php/mod_wfs.php	2009-04-16 08:07:49 UTC (rev 3882)
@@ -160,7 +160,7 @@
 			echo "wfs_conf[".$i."]['element'][".$cnt."]['element_type'] = '".htmlentities($row["element_type"], ENT_QUOTES, "UTF-8")."';";
 			echo "wfs_conf[".$i."]['element'][".$cnt."]['f_geom'] = '".$row["f_geom"]."';";
 			echo "wfs_conf[".$i."]['element'][".$cnt."]['f_gid'] = '".$row["f_gid"]."';";
-			echo "wfs_conf[".$i."]['element'][".$cnt."]['f_form_element_html'] = \"".(preg_replace("/\n/", "", preg_replace("/\r/", "", $row["f_form_element_html"])))."\";";
+			echo "wfs_conf[".$i."]['element'][".$cnt."]['f_form_element_html'] = \"".(preg_replace("/\n/", "", preg_replace("/\r/", "", htmlentities($row["f_form_element_html"], ENT_QUOTES, "UTF-8"))))."\";";
 //			echo "wfs_conf[".$i."]['element'][".$cnt."]['f_form_element_html'] = \"\";";
 			echo "wfs_conf[".$i."]['element'][".$cnt."]['f_edit'] = '".$row["f_edit"]."';";
 			echo "wfs_conf[".$i."]['element'][".$cnt."]['f_mandatory'] = '".$row["f_mandatory"]."';";



More information about the Mapbender_commits mailing list