diff options
author | Ruediger Pluem <rpluem@apache.org> | 2014-02-04 20:39:18 +0100 |
---|---|---|
committer | Ruediger Pluem <rpluem@apache.org> | 2014-02-04 20:39:18 +0100 |
commit | fea24799cfdfd9c380ad8d3140c1448663b57abf (patch) | |
tree | 99eff7308b3ff8e46b6fc7655adeff78687414a1 /server/util_pcre.c | |
parent | * Do not parse URL in case of regular expression as they likely do not follow (diff) | |
download | apache2-fea24799cfdfd9c380ad8d3140c1448663b57abf.tar.xz apache2-fea24799cfdfd9c380ad8d3140c1448663b57abf.zip |
* Only use PCRE_DUPNAMES if it is present (only in more recent versions of PCRE)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1564439 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/util_pcre.c')
-rw-r--r-- | server/util_pcre.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/util_pcre.c b/server/util_pcre.c index 4d2adef25b..c2039b13c5 100644 --- a/server/util_pcre.c +++ b/server/util_pcre.c @@ -125,7 +125,12 @@ AP_DECLARE(int) ap_regcomp(ap_regex_t * preg, const char *pattern, int cflags) const char *errorptr; int erroffset; int errcode = 0; + /* PCRE_DUPNAMES is only present in more recent versions of PCRE */ +#ifdef PCRE_DUPNAMES int options = PCRE_DUPNAMES; +#else + int options = 0; +#endif if ((cflags & AP_REG_ICASE) != 0) options |= PCRE_CASELESS; |