From 23b6c12cd8680bdd7fc765a0f34c5e73cca45c78 Mon Sep 17 00:00:00 2001 From: "Sergey A. Osokin" Date: Thu, 7 Jun 2012 01:24:03 +0000 Subject: Be more correct after latest changes in ngx_regex_t. --- www/nginx-devel/files/extra-patch-naxsi_src::naxsi_runtime.c | 4 ++-- www/nginx-devel/files/extra-patch-ngx_http_subs_filter_module.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'www/nginx-devel/files') diff --git a/www/nginx-devel/files/extra-patch-naxsi_src::naxsi_runtime.c b/www/nginx-devel/files/extra-patch-naxsi_src::naxsi_runtime.c index fd5228fb6556..e06d1b4cdfd4 100644 --- a/www/nginx-devel/files/extra-patch-naxsi_src::naxsi_runtime.c +++ b/www/nginx-devel/files/extra-patch-naxsi_src::naxsi_runtime.c @@ -7,10 +7,10 @@ -#if defined nginx_version && (nginx_version > 1001011) +#if defined nginx_version && (nginx_version >= 1003001) + (tmp_idx < len && -+ (match = pcre_exec(rl->br->rx->regex, 0, ++ (match = pcre_exec(rl->br->rx->regex->code, 0, + (const char *) str->data, str->len, tmp_idx, 0, + captures, 6)) >= 0) -+#elif nginx_version > 1001011 && nginx_version < 1003001 ++#elif (nginx_version > 1001011) && (nginx_version < 1003001) (tmp_idx < len && (match = pcre_exec(rl->br->rx->regex->pcre, 0, (const char *) str->data, str->len, tmp_idx, 0, diff --git a/www/nginx-devel/files/extra-patch-ngx_http_subs_filter_module.c b/www/nginx-devel/files/extra-patch-ngx_http_subs_filter_module.c index a3b1bdcc88e5..2739db922ca6 100644 --- a/www/nginx-devel/files/extra-patch-ngx_http_subs_filter_module.c +++ b/www/nginx-devel/files/extra-patch-ngx_http_subs_filter_module.c @@ -5,9 +5,9 @@ n = 0; -#if defined(nginx_version) && nginx_version >= 1001012 -+#if defined(nginx_version) && nginx_version >= 1003001 -+ rc = pcre_fullinfo(re, NULL, PCRE_INFO_CAPTURECOUNT, &n); -+#elif nginx_version >= 1001012 && nginx_version < 1003001 ++#if defined(nginx_version) && (nginx_version >= 1003001) ++ rc = pcre_fullinfo(re->code, NULL, PCRE_INFO_CAPTURECOUNT, &n); ++#elif (nginx_version >= 1001012) && (nginx_version < 1003001) rc = pcre_fullinfo(re->pcre, NULL, PCRE_INFO_CAPTURECOUNT, &n); #else rc = pcre_fullinfo(re, NULL, PCRE_INFO_CAPTURECOUNT, &n); -- cgit v1.2.3