diff options
author | Mark Sapiro <mark@msapiro.net> | 2008-12-05 15:08:41 -0800 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2008-12-05 15:08:41 -0800 |
commit | 6083004e76c57568fa24463bd6d00acedb51540f (patch) | |
tree | 9f0536ebea1c13e51ecffa289231c85c0472b5a6 | |
parent | cdf4499bb6fd19928478dbe5cb3ac9fc65453102 (diff) | |
download | mailman2-6083004e76c57568fa24463bd6d00acedb51540f.tar.gz mailman2-6083004e76c57568fa24463bd6d00acedb51540f.tar.xz mailman2-6083004e76c57568fa24463bd6d00acedb51540f.zip |
Changed the regexp for Utils.suspiciousHTML to exempt the
<link rel="SHORTCUT ICON" href="<mm-favicon>">
tag in the options.html template.
-rw-r--r-- | Mailman/Utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py index fbd57636..8401d0f0 100644 --- a/Mailman/Utils.py +++ b/Mailman/Utils.py @@ -905,7 +905,8 @@ def oneline(s, cset): # Many thanks are due to Moritz Naumann for his assistance with this. _badwords = [ '<i?frame', - '<link', + # Kludge to allow the specific tag that's in the options.html template. + '<link(?! rel="SHORTCUT ICON" href="<mm-favicon>">)', '<meta', '<script', r'(?:^|\W)j(?:ava)?script(?:\W|$)', |