aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/htmlformat.py
diff options
context:
space:
mode:
authorYasuhito FUTATSUKI at POEM <futatuki@poem.co.jp>2018-07-11 15:52:22 +0900
committerYasuhito FUTATSUKI at POEM <futatuki@poem.co.jp>2018-07-11 15:52:22 +0900
commit85340b712dbf2056abb6c3f87a96975679dc30bb (patch)
treedad9da9f7e39ee48fcfe9ae02ad648c503c79efe /Mailman/htmlformat.py
parentf6ba48ac8c20c79542108ff1bafa070bf9caee6d (diff)
parente8869cd75753f31cbf8889ea1598356f99b50073 (diff)
downloadmailman2-85340b712dbf2056abb6c3f87a96975679dc30bb.tar.gz
mailman2-85340b712dbf2056abb6c3f87a96975679dc30bb.tar.xz
mailman2-85340b712dbf2056abb6c3f87a96975679dc30bb.zip
merge lp:mailman/2.1 up to rev 1791
Diffstat (limited to '')
-rw-r--r--Mailman/htmlformat.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Mailman/htmlformat.py b/Mailman/htmlformat.py
index 31795a8a..30be8127 100644
--- a/Mailman/htmlformat.py
+++ b/Mailman/htmlformat.py
@@ -495,7 +495,9 @@ class TextArea:
def __init__(self, name, text='', rows=None, cols=None, wrap='soft',
readonly=0):
if isinstance(text, str):
- safetext = Utils.websafe(text)
+ # Double escape HTML entities in non-readonly areas.
+ doubleescape = not readonly
+ safetext = Utils.websafe(text, doubleescape)
else:
safetext = text
self.name = name