]> git.ipfire.org Git - thirdparty/sarg.git/commit
Deal with url without scheme or path in a squidGuard log
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Sat, 10 Mar 2012 14:37:11 +0000 (15:37 +0100)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Sat, 10 Mar 2012 14:37:11 +0000 (15:37 +0100)
commitd19124ace7ef034648b5e5d231082c2c014c7d30
tree6e196c46286d8b9752b35f61eaf9df0fd2cb54c6
parenta16cb22a92d21fa6a7008f83453e404d20caf608
Deal with url without scheme or path in a squidGuard log

Some url in a squidGuard log don't start with a scheme:// and may not
even contain a path. Those bare minimum url are not parsed correctly
by the redirector_log_format suggested in sarg.conf.

To parse those log entries correctly, we grab the whole url in the
buffer and strip it down to keep the host name.
redirector.c
sarg.conf