Fix parsing squidguard logs when url does not contain the protocol part. Thanks to mhotch for the patch.

This commit is contained in:
Gilles Darold 2017-05-26 16:35:24 +02:00
parent 1d6d78c6ad
commit f94b22416d
1 changed files with 1 additions and 1 deletions

View File

@ -1948,7 +1948,7 @@ sub _parseData
# Extract the domainname part of the URL
$url =~ s/:\d+.*// if (!$self->{UseUrlPort});
$url =~ m/^[^\/]+\/\/([^\/]+)/;
$url =~ m/^(?:[^\/]+\/\/|)([^\/:]+)/;
my $dest = $1 || $url;
# Replace username by his dnsname if there's no username