X-Git-Url: http://www.privoxy.org/gitweb/%40user-manual%40%40actions-help-prefix%40HIDE-CONTENT-DISPOSITION?a=blobdiff_plain;f=client-tags.c;h=d8cbb350fab7584caed84f05d1e81276a3470019;hb=HEAD;hp=51e8a9c59d9a650da389f09638fe982c3fbc8cda;hpb=d3856acd00b4c8164f66301b4d7ca01d5521ffbc;p=privoxy.git diff --git a/client-tags.c b/client-tags.c index 51e8a9c5..d8cbb350 100644 --- a/client-tags.c +++ b/client-tags.c @@ -43,6 +43,7 @@ #include "miscutil.h" #include "errlog.h" #include "parsers.h" +#include "urlmatch.h" struct client_specific_tag { @@ -658,7 +659,7 @@ int client_tag_match(const struct pattern_spec *pattern, for (tag = tags->first; tag != NULL; tag = tag->next) { - if (0 == regexec(pattern->pattern.tag_regex, tag->str, 0, NULL, 0)) + if (regex_matches(pattern->pattern.tag_regex, tag->str)) { log_error(LOG_LEVEL_TAGGING, "Client tag '%s' matches.", tag->str); return 1;