]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
fix for RewriteOptions processing in r1798938
authorEric Covener <covener@apache.org>
Mon, 19 Jun 2017 19:08:49 +0000 (19:08 +0000)
committerEric Covener <covener@apache.org>
Mon, 19 Jun 2017 19:08:49 +0000 (19:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1799261 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_rewrite.c

index 55a7b32cb81459f9407028c5d0b9937db090e650..9647c6f55b7779e6419b5fdb9452092c13f2666a 100644 (file)
@@ -4336,14 +4336,15 @@ static int apply_rewrite_list(request_rec *r, apr_array_header_t *rewriterules,
     int s;
     rewrite_ctx *ctx;
     int round = 1;
-    rewrite_server_conf *sconf = ap_get_module_config(
-                                 r->server->module_config, &rewrite_module);
+    rewrite_perdir_conf *dconf = (rewrite_perdir_conf *)
+                                 ap_get_module_config(r->per_dir_config,
+                                                      &rewrite_module);
 
     ctx = apr_palloc(r->pool, sizeof(*ctx));
     ctx->perdir = perdir;
     ctx->r = r;
 
-    if (sconf->options & OPTION_LONGOPT) { 
+    if (dconf->options & OPTION_LONGOPT) { 
         apr_pool_create(&(ctx->temp_pool), r->pool);
     }
     else {