https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8023

            Bug ID: 8023
           Summary: Lint error when using Captured tags with "uri" rule
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Libraries
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: Undefined

The following rule gives a lint error with a modern Perl version.

  header        __GB_FROM_ADDR         From:addr =~ /(?<GB_FROM_ADDR>.*)/
  uri           GB_STORAGE_GOOGLE_EMAIL
m|^https?://storage\.cloud\.google\.com/.{4,128}\#%{GB_FROM_ADDR}|i

The lint error is:
Aug 11 11:05:22.290 [14234] warn: Unescaped left brace in regex is passed
through in regex; marked by <-- HERE in m/(?<!\\\\)\\%\\\\{ <-- HERE
GB_FROM_ADDR\\\\}/ at (eval 4260) line 1795.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to