X-Git-Url: http://www.privoxy.org/gitweb/startup.html?a=blobdiff_plain;f=client-tags.c;h=d8cbb350fab7584caed84f05d1e81276a3470019;hb=662426360b8d10202feabdcd3515d64ea8833798;hp=474e56954b86f1b32e94ad01f2fcdabb1d34bc72;hpb=e3eea3bb5b185769454f0c73928e739ed674e115;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;