Fix parsing squidguard logs when url does not contain the protocol part. Thanks to mhotch for the patch.
This commit is contained in:
parent
1d6d78c6ad
commit
f94b22416d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue