Item14920: Use of deprecated regexp syntax, will be fatal in Perl 5.30
Priority: Enhancement
Current State: New
Released In: n/a
Target Release:
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/(%ALIAS{ <-- HERE (.*?)}%)/ at /var/www/foswiki/lib/Foswiki/Plugins/AliasPlugin.pm line 288.
So, one would have to replace
$text =~ s/(%ALIAS{(.*?)}%)/takeOutAliasMacro($1, $2, $macros)/gmse;
with
$text =~ s/(%ALIAS\{(.*?)\}%)/takeOutAliasMacro($1, $2, $macros)/gmse;
I run Foswiki 2.1.6 with Apache 2.4.38 and Perl 5.28 on Debian 10.
--
ChristianKern - 04 Jun 2020
- AliasPlugin.pm.patch: Possible patch to apply to /var/www/foswiki/lib/Foswiki/Plugins/AliasPlugin.pm