Package list pangzero / 5cc8413
Add unescaped-left-brace-in-regex.patch Markus Koschany 5 years ago
2 changed file(s) with 25 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
00 10_nowebpage.patch
1 unescaped-left-brace-in-regex.patch
0 From: Markus Koschany <apo@debian.org>
1 Date: Wed, 8 Jun 2016 08:37:41 +0200
2 Subject: unescaped left brace in regex
3
4 Fix deprecation warning for unescaped left brace in regex which will become
5 fatal with Perl 5.26.
6
7 Forwarded: https://github.com/kthakore/pangzero/issues/4
8 ---
9 lib/Games/PangZero/Config.pm | 1 +
10 1 file changed, 1 insertion(+)
11
12 diff --git a/lib/Games/PangZero/Config.pm b/lib/Games/PangZero/Config.pm
13 index eb26d05..72a9c4f 100644
14 --- a/lib/Games/PangZero/Config.pm
15 +++ b/lib/Games/PangZero/Config.pm
16 @@ -104,6 +104,7 @@ sub LoadConfig {
17 foreach $varname (GetConfigVars()) {
18 my $pattern = $varname;
19 $pattern =~ s/\[/\\[/g;
20 + $pattern =~ s/\{/\\{/g;
21 if ($text =~ /$pattern = (.+?)$/m) {
22 $val = $1;
23 if ($varname eq Games::PangZero::ShowWebsite) {