[Libreoffice-commits] dev-tools.git: help3/xhpeditor

Olivier Hallot (via logerrit) logerrit at kemper.freedesktop.org
Wed Jan 15 14:48:40 UTC 2020


 help3/xhpeditor/index.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0d1b7db3fcc4ea9f52131ef943ab445770ce6df8
Author:     Olivier Hallot <olivier.hallot at libreoffice.org>
AuthorDate: Wed Jan 15 11:42:43 2020 -0300
Commit:     Olivier Hallot <olivier.hallot at libreoffice.org>
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 <olivier.hallot at libreoffice.org>
    Tested-by: Olivier Hallot <olivier.hallot at libreoffice.org>

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>


More information about the Libreoffice-commits mailing list