- Fixed a temporary memory leak on persistent POSTs
- Fixed a temporary memory leak when the server response headers
includes NULL characters
+ - authenticate_ip_ttl_is_strict squid.conf option
+ - req_mime_type ACL type
Changes to Squid-2.4.DEVEL2 ():
/*
- * $Id: acl.cc,v 1.216 2000/05/02 21:35:24 hno Exp $
+ * $Id: acl.cc,v 1.217 2000/05/02 21:38:11 hno Exp $
*
* DEBUG: section 28 Access Control
* AUTHOR: Duane Wessels
if (!strcmp(s, "arp"))
return ACL_SRC_ARP;
#endif
+ if (!strcmp(s, "req_mime_type"))
+ return ACL_REQ_MIME_TYPE;
return ACL_NONE;
}
if (type == ACL_SRC_ARP)
return "arp";
#endif
+ if (type == ACL_REQ_MIME_TYPE)
+ return "req_mime_type";
return "ERROR";
}
aclParseArpList(&A->data);
break;
#endif
+ case ACL_REQ_MIME_TYPE:
+ aclParseWordList(&A->data);
+ break;
case ACL_NONE:
default:
fatal("Bad ACL type");
case ACL_SRC_ARP:
return aclMatchArp(&ae->data, checklist->src_addr);
#endif
+ case ACL_REQ_MIME_TYPE:
+ header = httpHeaderGetStr(&checklist->request->header,
+ HDR_CONTENT_TYPE);
+ if (NULL == header)
+ header = "";
+ return aclMatchRegex(ae->data, header);
+ /* NOTREACHED */
case ACL_NONE:
default:
debug(28, 0) ("aclMatchAcl: '%s' has bad type %d\n",
#
-# $Id: cf.data.pre,v 1.177 2000/05/02 21:35:24 hno Exp $
+# $Id: cf.data.pre,v 1.178 2000/05/02 21:38:12 hno Exp $
#
#
# SQUID Internet Object Cache http://squid.nlanr.net/Squid/
# This will be matched when the client's IP address has
# more than <number> HTTP connections established.
+ acl req_mime_type mime-type1 ...
+ # regex match agains the mime type of the request generated
+ # by the client. Can be used to detect file upload or some
+ # types HTTP tunelling requests.
+ # NOTE: This does NOT match the reply. You cannot use this
+ # to match the returned file type.
Examples:
acl myexample dst_as 1241
acl password proxy_auth REQUIRED
+acl fileupload req_mime_type -i ^multipart/form-data$
NOCOMMENT_START
#Recommended minimum configuration:
/*
- * $Id: enums.h,v 1.165 2000/05/02 20:58:30 hno Exp $
+ * $Id: enums.h,v 1.166 2000/05/02 21:38:12 hno Exp $
*
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
ACL_SNMP_COMMUNITY,
ACL_NETDB_SRC_RTT,
ACL_MAXCONN,
+ ACL_REQ_MIME_TYPE,
ACL_ENUM_MAX
} squid_acl;