cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
You are here: Foswiki>Tasks Web>Item13423 (05 Jul 2015, GeorgeClark)Edit Attach

Item13423: Perl 5.22 deprecates unescaped left brace in Regular Expressions

pencil
Priority: Urgent
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Engine
Component:
Branches: master
Reported By: JozefMojzis
Waiting For:
Last Change By: GeorgeClark
The 5.22 introduced new deprecation warnings.

The current trunk emits them at every request many times, depending how much plugins are installed.

Examples:

[Thu May 21 17:43:34 2015] Meta.pm: Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/^%META:TOPICINFO{ <-- HERE .*?}%$/ at /me/fw/sites/devmast/foswiki/core/lib/Foswiki/Meta.pm line 3631.

[Thu May 21 17:43:34 2015] rest: Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/}{ <-- HERE / at /me/fw/sites/devmast/foswiki/core/lib/Foswiki/Configure/LoadSpec.pm line 530.

[Thu May 21 17:43:34 2015] rest: Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/%RDIFF2COMPARE{ <-- HERE "?(.*?)"?}%/ at /me/fw/sites/devmast/foswiki/core/lib/Foswiki/Plugins/CompareRevisionsAddonPlugin.pm line 55.

[Thu May 21 17:43:28 2015] rest: Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(%EDITCELL{ <-- HERE .*?}%)/ at /me/fw/sites/devmast/foswiki/core/lib/Foswiki/Plugins/EditRowPlugin/Table.pm line 587.

[Thu May 21 17:43:34 2015] rest: Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/%RENDERLIST{ <-- HERE (.*?)}%\s*(([\n\r]+[^ ]{3}[^\n\r]*)*?)(([\n\r]+ {3}[^\n\r]*)+)/ at /me/fw/sites/devmast/foswiki/core/lib/Foswiki/Plugins/RenderListPlugin.pm line 84.

many many others. The error-log growing very very fast.

-- JozefMojzis - 21 May 2015

Marking this urgent for 1.2, we can address while workikng to stabilize the unicode core work.

-- GeorgeClark - 21 May 2015

Reopen if any more regex issues encountered.

-- GeorgeClark - 23 Jun 2015
 
Topic revision: r12 - 05 Jul 2015, GeorgeClark - This page was cached on 23 Jun 2018 - 03:47.

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