W3C home > Mailing lists > Public > www-validator-cvs@w3.org > November 2009

validator/httpd/cgi-bin check,1.738,1.739

From: Ville Skytta via cvs-syncmail <cvsmail@w3.org>
Date: Sun, 29 Nov 2009 19:16:18 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1NEpFq-0000Z4-5z@lionel-hutz.w3.org>
Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv2156/httpd/cgi-bin

Modified Files:
	check 
Log Message:
Fix "Capture variable used outside conditional" issue flagged by perlcritic.

Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.738
retrieving revision 1.739
diff -u -d -r1.738 -r1.739
--- check	28 Nov 2009 21:55:25 -0000	1.738
+++ check	29 Nov 2009 19:16:15 -0000	1.739
@@ -98,7 +98,9 @@
     my $base = $ENV{W3C_VALIDATOR_HOME} || '/usr/local/validator';
 
     # Launder data for -T; -AutoLaunder doesn't catch this one.
-    $base = $1 if ($base =~ /^(.*)$/);
+    if ($base =~ /^(.*)$/) {
+        $base = $1;
+    }
 
     #
     # Read Config Files.
Received on Sunday, 29 November 2009 19:16:19 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:40 UTC