diff options
author | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2018-07-11 15:52:22 +0900 |
---|---|---|
committer | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2018-07-11 15:52:22 +0900 |
commit | 85340b712dbf2056abb6c3f87a96975679dc30bb (patch) | |
tree | dad9da9f7e39ee48fcfe9ae02ad648c503c79efe /Mailman/htmlformat.py | |
parent | f6ba48ac8c20c79542108ff1bafa070bf9caee6d (diff) | |
parent | e8869cd75753f31cbf8889ea1598356f99b50073 (diff) | |
download | mailman2-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.py | 4 |
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 |