chiark / gitweb /
Don't mind spaces in ref supplied for log lookup
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 20 Apr 2010 17:00:11 +0000 (18:00 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 20 Apr 2010 17:00:11 +0000 (18:00 +0100)
webstump/scripts/html_output.pl

index aca0509..d5c225e 100644 (file)
@@ -676,7 +676,7 @@ sub html_search_logs {
   if ($request{'download_logs'}) {
       print "<h2>Complete log download</h2>\n";
       $min= 2;
-  } elsif ($request{'messagenum'} =~ m/^(\d+)$/) {
+  } elsif ($request{'messagenum'} =~ m/^\s*(\d+)\s*$/) {
       $reqnum= $1;
       $forwards= -1;
       $min= 1;