]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
URL-encode the implicit %DATA appended to helper format
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 1 Oct 2015 12:58:19 +0000 (05:58 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 1 Oct 2015 12:58:19 +0000 (05:58 -0700)
There is nothing we can easily do about %DATA explicitly used inside the
format. It will by non-encoded unless specific encoding is written in the
format config, according to logformat design.

src/external_acl.cc

index ac52a51c37152866533ee7032baa14f72d82edf4..e89631acc484d7709d1846ee04e88cde7e675ef4 100644 (file)
@@ -324,6 +324,7 @@ parse_externalAclHelper(external_acl ** list)
     if (!data_used) {
         *fmt = new Format::Token;
         (*fmt)->type = Format::LFT_EXT_ACL_DATA;
+        (*fmt)->quote = Format::LOG_QUOTE_URL;
     }
 
     /* helper */