]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bugzilla #160:
authorhno <>
Wed, 23 May 2001 02:31:34 +0000 (02:31 +0000)
committerhno <>
Wed, 23 May 2001 02:31:34 +0000 (02:31 +0000)
> My problem is that the referer_log file is still at 0 bytes. This cannot be
> right. I have created a site with a clickthrough possibility, and it isn't
> logging the http_referer.
>
> Has anybody had simular experiences? Or can point me in the right direction?
>

I look into that. The variable holding the logfile struct just had no value
assigned. Here is a patch:

src/referer.cc

index 9b7fc9406cbf033250934fb648943b2e75dc3f1f..023797aa01b9757f2521373b6c3d7b1d0cf04572 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: referer.cc,v 1.3 2001/01/12 00:37:20 wessels Exp $
+ * $Id: referer.cc,v 1.4 2001/05/22 20:31:34 hno Exp $
  *
  * DEBUG: section 40    User-Agent and Referer logging
  * AUTHOR: Joe Ramey <ramey@csc.ti.com> (useragent)
@@ -49,7 +49,7 @@ refererOpenLog(void)
        debug(40, 1) ("Referer logging is disabled.\n");
        return;
     }
-    logfileOpen(Config.Log.referer, 0, 1);
+    refererlog = logfileOpen(Config.Log.referer, 0, 1);
 #endif
 }