[Spambayes] [ spambayes-Patches-725616 ] Options.py mergefiles
crashes (+ fix)
SourceForge.net
noreply at sourceforge.net
Tue Apr 22 16:08:23 EDT 2003
Patches item #725616, was opened at 2003-04-23 00:15
Message generated for change (Comment added) made by anadelonbrin
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498105&aid=725616&group_id=61702
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Sjoerd Mullender (sjoerd)
Assigned to: Tony Meyer (anadelonbrin)
Summary: Options.py mergefiles crashes (+ fix)
Initial Comment:
When calling Options.options.mergefiles I get a crash
somewhere in re.compile, from the call in _split_values
with the message: bad character range.
The r.e. being compile is r"[\w\.-\*]+". This is
indeed an invalid character range ("." through "*", but
ord(".") > ord("*")). I believe the problem is that
the "-" is not escaped. The attached diff fixes the
three occurances where this happens.
----------------------------------------------------------------------
>Comment By: Tony Meyer (anadelonbrin)
Date: 2003-04-23 10:08
Message:
Logged In: YES
user_id=552329
Thanks, I'm checking in the fix - you're exactly right.
Bizarre that this worked for me - I've definately tested using
all of those regexs when checking the validity
of "Hammie" "header_name". Go figure.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498105&aid=725616&group_id=61702
More information about the Spambayes
mailing list