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 aca05099ff64af4af4a6b279818461a30247086f..d5c225ec81cd40aa71b23a487a5f3b3b86237c7f 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;