Bug 12364

Summary: Useless use of '\'; doesn't escape metacharacter '('
Product: Koha Reporter: Jared Camins-Esakov <jcamins>
Component: Architecture, internals, and plumbingAssignee: Galen Charlton <gmcharlt>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: normal    
Priority: P3 CC: jonathan.druart, mmoreno, veron
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Jared Camins-Esakov 2014-06-04 18:03:01 UTC
With the latest version of Perl, there is the following error in C4::AuthoritiesMarc::FindDuplicateAuthority:
  Useless use of '\'; doesn't escape metacharacter '(' at /home/jcamins/kohaclone/C4/AuthoritiesMarc.pm line 856.

That doesn't seem good.
Comment 1 Marco Moreno 2014-10-13 20:46:00 UTC
This is due to unnecessary escapes inside a bracketed character class.

Locate C4/AuthoritiesMarc.pm (for me it was in /usr/share/koha/lib) and replace line 856 containing this:

my $filtervalues=qr([\001-\040\!\'\"\`\#\$\%\&\*\+,\-\./:;<=>\?\@\(\)\{\[\]\}_\|\~]);

with this:

my $filtervalues=qr([\001-\040!'"`#$%&*+,\-.:;<=>?@(){}\[\]_|~]);

(See 'man perlrecharclass' under the section 'Special Characters Inside a Bracketed Character Class'.)

I raised this to medium importance due to getting flooded with cron emails every 5 minutes.  And if nullmailer is not configured immediately after installation, log files will grow to enormous sizes.  (In just a few weeks, my logs grew to well over 10GB and I ran out of disk space.)
Comment 2 Jonathan Druart 2015-04-28 10:08:27 UTC

*** This bug has been marked as a duplicate of bug 12654 ***