help3/xhpeditor/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 0d1b7db3fcc4ea9f52131ef943ab445770ce6df8 Author: Olivier Hallot <[email protected]> AuthorDate: Wed Jan 15 11:42:43 2020 -0300 Commit: Olivier Hallot <[email protected]> CommitDate: Wed Jan 15 15:48:21 2020 +0100 tdf#130013 Prevent entities to be converted in textarea Change-Id: Ie1e44b9bc81aa628460a3c52dadecc11f85f372b Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/86851 Reviewed-by: Olivier Hallot <[email protected]> Tested-by: Olivier Hallot <[email protected]> diff --git a/help3/xhpeditor/index.php b/help3/xhpeditor/index.php index 58a1915..7e063e5 100644 --- a/help3/xhpeditor/index.php +++ b/help3/xhpeditor/index.php @@ -45,7 +45,7 @@ $xhp = $_POST["xhpdoc"]; </div> <div id="editortextarea"> <form id="CMtextarea" method="post" action="index.php"> - <textarea id="xhpeditor" name="xhpdoc" form="CMtextarea"><?php echo $xhp;?></textarea> + <textarea id="xhpeditor" name="xhpdoc" form="CMtextarea"><?php echo htmlspecialchars($xhp,ENT_NOQUOTES);?></textarea> </form> </div> </div> _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
