aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2009-02-08 16:36:11 -0800
committerMark Sapiro <mark@msapiro.net>2009-02-08 16:36:11 -0800
commit60175557a1db677ad1e5b8c20fbaced8fa8fe5e2 (patch)
treed0896e7883f926fb5f9c0a4d20c36157805d116d
parent0fa4b3eda0b3af7678b32b2baebcbda550311427 (diff)
downloadmailman2-60175557a1db677ad1e5b8c20fbaced8fa8fe5e2.tar.gz
mailman2-60175557a1db677ad1e5b8c20fbaced8fa8fe5e2.tar.xz
mailman2-60175557a1db677ad1e5b8c20fbaced8fa8fe5e2.zip
Changed Gui/Topics.py to validate regexps in VERBOSE mode. Bug #327008.
-rw-r--r--Mailman/Gui/Topics.py5
-rw-r--r--NEWS2
2 files changed, 5 insertions, 2 deletions
diff --git a/Mailman/Gui/Topics.py b/Mailman/Gui/Topics.py
index 14fac968..96f9b421 100644
--- a/Mailman/Gui/Topics.py
+++ b/Mailman/Gui/Topics.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2006 by the Free Software Foundation, Inc.
+# Copyright (C) 2001-2009 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -126,7 +126,8 @@ class Topics(GUIBase):
# Make sure the pattern was a legal regular expression
name = Utils.websafe(name)
try:
- re.compile(pattern)
+ # Tagger compiles in verbose mode so we do too.
+ re.compile(pattern, re.VERBOSE)
except (re.error, TypeError):
safepattern = Utils.websafe(pattern)
doc.addError(_("""The topic pattern '%(safepattern)s' is not a
diff --git a/NEWS b/NEWS
index 8d0a3063..379b135d 100644
--- a/NEWS
+++ b/NEWS
@@ -85,6 +85,8 @@ Here is a history of user visible changes to Mailman.
- Fixed a bug in admindb.py in the implementation of replacing "No Reason
Given" with the default rejection reason. Bug #325016.
+ - Changed Gui/Topics.py to validate regexps in VERBOSE mode. Bug #327008.
+
Miscellaneous
- Added Lindsay Haisley's courier_to_mailman.py to the contrib directory.