Item13423: Perl 5.22 deprecates unescaped left brace in Regular Expressions
Priority: Urgent
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Engine
Component:
Branches: master
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