On 2024-05-21 13:42:23 -0400, Bill Cole wrote: > On 2024-05-21 at 11:00:57 UTC-0400 (Tue, 21 May 2024 17:00:57 +0200) > Vincent Lefevre <vinc...@vinc17.net> > is rumored to have said: > > > While testing a rule with SpamAssassin 4.0.0 under Debian/stable > > (I wasn't aware of allow_user_rules yet, but this is not the issue > > I'm reported): > > > > 2024-05-21T16:42:42.792136+02:00 joooj spamd[219339]: config: not > > parsing, 'allow_user_rules' is 0: header LOCAL_TO_LORIA ToCc =~ > > /loria\\.fr/i > > 2024-05-21T16:42:42.793753+02:00 joooj spamd[219339]: config: failed to > > parse line in /srv/d_joooj/home/vinc17/.spamassassin/user_prefs (line > > 192): header LOCAL_TO_LORIA ToCc =~ /loria\\.fr/i > > > > while I just had /loria\.fr/i (with a single backslash) in my > > user_prefs config file. > > > > Is there a reason to have a double backslash in the log messages > > or is this a bug? > > It is intentional to assure that log messages (which may include strings > from tainted sources) have all common meta-characters escaped.
After looking at the source (Logger.pm), these are actually control and non-ASCII characters that are escaped so that they can be printed. -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)