Bug 12364 - Useless use of '\'; doesn't escape metacharacter '('
Summary: Useless use of '\'; doesn't escape metacharacter '('
Status: RESOLVED DUPLICATE of bug 12654
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: unspecified
Hardware: All All
: P3 normal
Assignee: Galen Charlton
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-04 18:03 UTC by Jared Camins-Esakov
Modified: 2015-04-28 10:08 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***