[Mapbender-commits] r5838 - branches/2.5/http/php
branches/2.6/http/php trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Mar 26 07:15:14 EDT 2010
Author: christoph
Date: 2010-03-26 07:15:11 -0400 (Fri, 26 Mar 2010)
New Revision: 5838
Modified:
branches/2.5/http/php/mod_editElements.php
branches/2.6/http/php/mod_editElements.php
trunk/mapbender/http/php/mod_editElements.php
Log:
allow textareas in content
Modified: branches/2.5/http/php/mod_editElements.php
===================================================================
--- branches/2.5/http/php/mod_editElements.php 2010-03-26 08:39:17 UTC (rev 5837)
+++ branches/2.5/http/php/mod_editElements.php 2010-03-26 11:15:11 UTC (rev 5838)
@@ -554,7 +554,7 @@
echo "<tr><td>Height: </td><td><input type='text' class='textfield' name='e_height' value='".$row["e_height"]."'></td></tr>\n";
echo "<tr><td>Z-INDEX: </td><td><input type='text' class='textfield' name='e_z_index' value='".$row["e_z_index"]."'></td></tr>\n";
echo "<tr><td>Styles: </td><td><input type='text' class='textfield' name='e_more_styles' value='".$row["e_more_styles"]."'></td></tr>\n";
- echo "<tr><td>Content: </td><td><textarea cols='32' rows='4' name='e_content' >".stripslashes($row["e_content"])."</textarea></td></tr>\n";
+ echo "<tr><td>Content: </td><td><textarea cols='32' rows='4' name='e_content' >".htmlentities(stripslashes($row["e_content"]), ENT_QUOTES, CHARSET)."</textarea></td></tr>\n";
echo "<tr><td>Close-TAG: </td><td><input type='text' class='textfield' name='e_closetag' value='".$row["e_closetag"]."'></td></tr>\n";
echo "<tr><td>JavaScript: </td><td><input type='text' class='textfield' name='e_js_file' value='".$row["e_js_file"]."'></td></tr>\n";
echo "<tr><td>Modul: </td><td><input type='text' class='textfield' name='e_mb_mod' value='".$row["e_mb_mod"]."'></td></tr>\n";
@@ -579,7 +579,7 @@
echo "<tr><td>Height: </td><td><input type='text' class='textfield' name='e_height' value='".$e_height."'></td></tr>\n";
echo "<tr><td>Z-INDEX: </td><td><input type='text' class='textfield' name='e_z_index' value='".$e_z_index."'></td></tr>\n";
echo "<tr><td>Styles: </td><td><input type='text' class='textfield' name='e_more_styles' value='".$e_more_styles."'></td></tr>\n";
- echo "<tr><td>Content: </td><td><textarea cols='32' rows='4' name='e_content' >".stripslashes($e_content)."</textarea></td></tr>\n";
+ echo "<tr><td>Content: </td><td><textarea cols='32' rows='4' name='e_content' >".htmlentities(stripslashes($e_content), ENT_QUOTES, CHARSET)."</textarea></td></tr>\n";
echo "<tr><td>Close-TAG: </td><td><input type='text' class='textfield' name='e_closetag' value='".$e_closetag."'></td></tr>\n";
echo "<tr><td>JavaScript: </td><td><input type='text' class='textfield' name='e_js_file' value='".$e_js_file."'></td></tr>\n";
echo "<tr><td>Module: </td><td><input type='text' class='textfield' name='e_mb_mod' value='".$e_mb_mod."'></td></tr>\n";
Modified: branches/2.6/http/php/mod_editElements.php
===================================================================
--- branches/2.6/http/php/mod_editElements.php 2010-03-26 08:39:17 UTC (rev 5837)
+++ branches/2.6/http/php/mod_editElements.php 2010-03-26 11:15:11 UTC (rev 5838)
@@ -564,7 +564,7 @@
echo "<tr><td>Height: </td><td><input type='text' class='textfield' name='e_height' value='".$row["e_height"]."'></td></tr>\n";
echo "<tr><td>Z-INDEX: </td><td><input type='text' class='textfield' name='e_z_index' value='".$row["e_z_index"]."'></td></tr>\n";
echo "<tr><td>Styles: </td><td><input type='text' class='textfield' name='e_more_styles' value='".$row["e_more_styles"]."'></td></tr>\n";
- echo "<tr><td>Content: </td><td><textarea cols='32' rows='4' name='e_content' >".stripslashes($row["e_content"])."</textarea></td></tr>\n";
+ echo "<tr><td>Content: </td><td><textarea cols='32' rows='4' name='e_content' >".htmlentities(stripslashes($row["e_content"]), ENT_QUOTES, CHARSET)."</textarea></td></tr>\n";
echo "<tr><td>Close-TAG: </td><td><input type='text' class='textfield' name='e_closetag' value='".$row["e_closetag"]."'></td></tr>\n";
echo "<tr><td>JavaScript: </td><td><input type='text' class='textfield' name='e_js_file' value='".$row["e_js_file"]."'></td></tr>\n";
echo "<tr><td>Modul: </td><td><input type='text' class='textfield' name='e_mb_mod' value='".$row["e_mb_mod"]."'></td></tr>\n";
@@ -589,7 +589,7 @@
echo "<tr><td>Height: </td><td><input type='text' class='textfield' name='e_height' value='".$e_height."'></td></tr>\n";
echo "<tr><td>Z-INDEX: </td><td><input type='text' class='textfield' name='e_z_index' value='".$e_z_index."'></td></tr>\n";
echo "<tr><td>Styles: </td><td><input type='text' class='textfield' name='e_more_styles' value='".$e_more_styles."'></td></tr>\n";
- echo "<tr><td>Content: </td><td><textarea cols='32' rows='4' name='e_content' >".stripslashes($e_content)."</textarea></td></tr>\n";
+ echo "<tr><td>Content: </td><td><textarea cols='32' rows='4' name='e_content' >".htmlentities(stripslashes($e_content), ENT_QUOTES, CHARSET)."</textarea></td></tr>\n";
echo "<tr><td>Close-TAG: </td><td><input type='text' class='textfield' name='e_closetag' value='".$e_closetag."'></td></tr>\n";
echo "<tr><td>JavaScript: </td><td><input type='text' class='textfield' name='e_js_file' value='".$e_js_file."'></td></tr>\n";
echo "<tr><td>Module: </td><td><input type='text' class='textfield' name='e_mb_mod' value='".$e_mb_mod."'></td></tr>\n";
Modified: trunk/mapbender/http/php/mod_editElements.php
===================================================================
--- trunk/mapbender/http/php/mod_editElements.php 2010-03-26 08:39:17 UTC (rev 5837)
+++ trunk/mapbender/http/php/mod_editElements.php 2010-03-26 11:15:11 UTC (rev 5838)
@@ -565,7 +565,7 @@
echo "<tr><td>Height: </td><td><input type='text' class='textfield' name='e_height' value='".$row["e_height"]."'></td></tr>\n";
echo "<tr><td>Z-INDEX: </td><td><input type='text' class='textfield' name='e_z_index' value='".$row["e_z_index"]."'></td></tr>\n";
echo "<tr><td>Styles: </td><td><input type='text' class='textfield' name='e_more_styles' value='".$row["e_more_styles"]."'></td></tr>\n";
- echo "<tr><td>Content: </td><td><textarea cols='32' rows='4' name='e_content' >".stripslashes($row["e_content"])."</textarea></td></tr>\n";
+ echo "<tr><td>Content: </td><td><textarea cols='32' rows='4' name='e_content' >".htmlentities(stripslashes($row["e_content"]), ENT_QUOTES, CHARSET)."</textarea></td></tr>\n";
echo "<tr><td>Close-TAG: </td><td><input type='text' class='textfield' name='e_closetag' value='".$row["e_closetag"]."'></td></tr>\n";
echo "<tr><td>JavaScript: </td><td><input type='text' class='textfield' name='e_js_file' value='".$row["e_js_file"]."'></td></tr>\n";
echo "<tr><td>Modul: </td><td><input type='text' class='textfield' name='e_mb_mod' value='".$row["e_mb_mod"]."'></td></tr>\n";
@@ -590,7 +590,7 @@
echo "<tr><td>Height: </td><td><input type='text' class='textfield' name='e_height' value='".$e_height."'></td></tr>\n";
echo "<tr><td>Z-INDEX: </td><td><input type='text' class='textfield' name='e_z_index' value='".$e_z_index."'></td></tr>\n";
echo "<tr><td>Styles: </td><td><input type='text' class='textfield' name='e_more_styles' value='".$e_more_styles."'></td></tr>\n";
- echo "<tr><td>Content: </td><td><textarea cols='32' rows='4' name='e_content' >".stripslashes($e_content)."</textarea></td></tr>\n";
+ echo "<tr><td>Content: </td><td><textarea cols='32' rows='4' name='e_content' >".htmlentities(stripslashes($e_content), ENT_QUOTES, CHARSET)."</textarea></td></tr>\n";
echo "<tr><td>Close-TAG: </td><td><input type='text' class='textfield' name='e_closetag' value='".$e_closetag."'></td></tr>\n";
echo "<tr><td>JavaScript: </td><td><input type='text' class='textfield' name='e_js_file' value='".$e_js_file."'></td></tr>\n";
echo "<tr><td>Module: </td><td><input type='text' class='textfield' name='e_mb_mod' value='".$e_mb_mod."'></td></tr>\n";
More information about the Mapbender_commits
mailing list