X-Git-Url: http://www.privoxy.org/gitweb/contact.html?a=blobdiff_plain;f=client-tags.c;h=d8cbb350fab7584caed84f05d1e81276a3470019;hb=af381609cc6f322ab864bc2372fec8769f3eb599;hp=474e56954b86f1b32e94ad01f2fcdabb1d34bc72;hpb=53748ca8ca3c893025be34dd4f104546fcbd0602;p=privoxy.git diff --git a/client-tags.c b/client-tags.c index 474e5695..d8cbb350 100644 --- a/client-tags.c +++ b/client-tags.c @@ -659,11 +659,7 @@ int client_tag_match(const struct pattern_spec *pattern, for (tag = tags->first; tag != NULL; tag = tag->next) { -#ifdef HAVE_PCRE2 - if (pcre2_pattern_matches(pattern->pattern.tag_regex, tag->str)) -#else - if (0 == regexec(pattern->pattern.tag_regex, tag->str, 0, NULL, 0)) -#endif + if (regex_matches(pattern->pattern.tag_regex, tag->str)) { log_error(LOG_LEVEL_TAGGING, "Client tag '%s' matches.", tag->str); return 1;