SA Bugzilla – Bug 7404
Bad regexp (and logic) in MS::PerMsgStatus::get_content_preview
Last modified: 2018-01-11 14:53:51 UTC
t/autolearn.t ..................... Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/^(.{ <-- HERE ,200}).*$/ at ../blib/lib/Mail/SpamAssassin/PerMsgStatus.pm line 923. perl 5.25.11
(sorry for hitting a submit prematurely on an unfinished PR) Testing with 5.25.11 (soon to be be released as 5.26) fills the log with warnings on a suspicious regexp, as shown above - an x{,n} is not interpreted as x{0,n}, and even if it were, the logic is wrong in that code. fixing in trunk: Sending lib/Mail/SpamAssassin/PerMsgStatus.pm Committed revision 1791010.
Created attachment 5441 [details] Fixes inappropriate regexp (and surrounding logic)
3.4: Sending PerMsgStatus.pm Committed revision 1791013.
closing, resolved
*** Bug 7369 has been marked as a duplicate of this bug. ***
*** Bug 7444 has been marked as a duplicate of this bug. ***
*** Bug 7448 has been marked as a duplicate of this bug. ***
*** Bug 7480 has been marked as a duplicate of this bug. ***