From: gerv%gerv.net <> Date: Tue, 30 Apr 2002 02:37:52 +0000 (+0000) Subject: Bug 140564 - Unquoted variable in regexp in globals.pl. Patch by xor@ivwnet.com;... X-Git-Tag: bugzilla-2.16rc1~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6be616ed3df7009cdd8f4d0363bc11db9f8902b0;p=thirdparty%2Fbugzilla.git Bug 140564 - Unquoted variable in regexp in globals.pl. Patch by xor@ivwnet.com; 2xr=gerv. --- diff --git a/globals.pl b/globals.pl index 2dd4dbc988..2bbaf3b150 100644 --- a/globals.pl +++ b/globals.pl @@ -1649,7 +1649,7 @@ sub GetOutputFormats { # Loop over each file in the sub-directory looking for format files # (files whose name looks like SCRIPT-FORMAT.EXT.tmpl). foreach my $file (@files) { - if ($file =~ /^$script-(.+)\.(.+)\.(tmpl)$/) { + if ($file =~ /^\Q$script\E-(.+)\.(.+)\.(tmpl)$/) { $formats->{$1} = { 'template' => $file , 'extension' => $2 ,