diff options
author | Holger Bauer <hoba@pfsense.org> | 2005-06-30 22:23:55 +0000 |
---|---|---|
committer | Holger Bauer <hoba@pfsense.org> | 2005-06-30 22:23:55 +0000 |
commit | adf5f5fccdccdd3f546da346dc438776dd19cd60 (patch) | |
tree | 5c835c1ed6a972a75e4274fc533b0d60ed85b9f0 /usr/local/www | |
parent | e6a8f6ec3d61b134b13ec37034e236ee505ed9fa (diff) | |
download | pfsense-adf5f5fccdccdd3f546da346dc438776dd19cd60.zip pfsense-adf5f5fccdccdd3f546da346dc438776dd19cd60.tar.gz |
using htmlentities for textarea to make editing of php-files possible without unexpected end of page
- fixed by pfjason
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/edit.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr/local/www/edit.php b/usr/local/www/edit.php index a634d21..6d7bbaa 100755 --- a/usr/local/www/edit.php +++ b/usr/local/www/edit.php @@ -154,7 +154,7 @@ function sf() { document.forms[0].savetopath.focus(); } </tr> <tr> <td valign="top" class="label"> - <textarea rows="<?php echo $rows; ?>" cols="<?php echo $cols; ?>" name="content"><?php echo $content; ?></textarea><br> + <textarea rows="<?php echo $rows; ?>" cols="<?php echo $cols; ?>" name="content"><?php echo htmlentities($content); ?></textarea><br> <p> </td> </tr> @@ -167,5 +167,4 @@ function sf() { document.forms[0].savetopath.focus(); } <script language="Javascript"> sf(); -</script> - +</script>
\ No newline at end of file |