Skip to content

Commit

Permalink
Fix to remove trailing literal dot from the match
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia Rostovtsev committed Aug 10, 2018
1 parent c24070f commit 95ab229
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions squid/index.cgi
Expand Up @@ -46,7 +46,7 @@ my $squid_version;
if ($ver =~ /Version\s+([2-4]\.[0-9]+)/ ||
$ver =~ /^(1\.1)\.\d+/ ||
$ver =~ /^(1)\.NOVM/ ||
$ver =~ /^([2-4]\.[0-9]+)\./) {
$ver =~ /^([2-4]\.[0-9]+)/) {
# Save version number
open(VERSION, ">$module_config_directory/version");
print VERSION $1,"\n";
Expand Down Expand Up @@ -182,4 +182,3 @@ if ($config{'restart_pos'} != 1) {
}

&ui_print_footer("/", $text{'index_return'});

0 comments on commit 95ab229

Please sign in to comment.