Item14921: Use of deprecated regexp syntax, will be fatal in Perl 5.30

pencil
Priority: Enhancement
Current State: New
Released In: n/a
Target Release:
Applies To: Extension
Component: HolidaylistPlugin
Branches:
Reported By: ChristianKern
Waiting For:
Last Change By: ChristianKern
My Foswiki's Apache error log is full of warnings like that:

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 ll:?}/ at /var/www/foswiki/lib/Foswiki/Plugins/HolidaylistPlugin/Core.pm line 1467.

Identical messages occur for lines 1467, 1474, 1483, 1492, 1501, 1511, 1513, 1517, 1522, 1527, 1532, 1549, 1553, 1555, 1561, 1565, 1571, 1575, 1581, 1585, 1589, 1591, 1596, 1600, 1605, and 1607.

So, one would have to replace {...} with \{...\} in each of these lines.

I run Foswiki 2.1.6 with Apache 2.4.38 and Perl 5.28 on Debian 10.

-- ChristianKern - 04 Jun 2020

 

ItemTemplate edit

Summary Use of deprecated regexp syntax, will be fatal in Perl 5.30
ReportedBy ChristianKern
Codebase
SVN Range
AppliesTo Extension
Component HolidaylistPlugin
Priority Enhancement
CurrentState New
WaitingFor
Checkins
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
Topic attachments
I Attachment Action Size Date Who Comment
HolidaylistPlugin__Core.pm.patchpatch HolidaylistPlugin__Core.pm.patch manage 9 K 05 Jun 2020 - 09:10 ChristianKern Possible patch to applay to /var/www/foswiki/lib/Foswiki/Plugins/HolidaylistPlugin/Core.pm
Topic revision: r3 - 05 Jun 2020, ChristianKern - This page was cached on 05 Jun 2020 - 11:10.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy