summaryrefslogtreecommitdiff
path: root/Mailman/Cgi/edithtml.py
diff options
context:
space:
mode:
authortkikuchi2005-11-30 02:26:22 +0000
committertkikuchi2005-11-30 02:26:22 +0000
commite96224218659ad4efc79651ca145ff92f4ddc1f3 (patch)
treee17119c2418fff1f7804240ca5df438dda0f2321 /Mailman/Cgi/edithtml.py
parent0d148d9e6d1b96900dad8f1508011d68ebcc29f1 (diff)
downloadmailman-e96224218659ad4efc79651ca145ff92f4ddc1f3.tar.gz
mailman-e96224218659ad4efc79651ca145ff92f4ddc1f3.tar.zst
mailman-e96224218659ad4efc79651ca145ff92f4ddc1f3.zip
Diffstat (limited to 'Mailman/Cgi/edithtml.py')
-rw-r--r--Mailman/Cgi/edithtml.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Mailman/Cgi/edithtml.py b/Mailman/Cgi/edithtml.py
index 9a07cdc0e..1d36d5f66 100644
--- a/Mailman/Cgi/edithtml.py
+++ b/Mailman/Cgi/edithtml.py
@@ -156,6 +156,7 @@ def ChangeHTML(mlist, cgi_info, template_name, doc):
doc.AddItem('<hr>')
return
code = cgi_info['html_code'].value
+ code = re.sub(r'<([/]?script.*?)>', r'&lt;\1&gt;', code)
langdir = os.path.join(mlist.fullpath(), mlist.preferred_language)
# Make sure the directory exists
omask = os.umask(0)