httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cove...@apache.org
Subject svn commit: r1799261 - /httpd/httpd/trunk/modules/mappers/mod_rewrite.c
Date Mon, 19 Jun 2017 19:08:49 GMT
Author: covener
Date: Mon Jun 19 19:08:49 2017
New Revision: 1799261

URL: http://svn.apache.org/viewvc?rev=1799261&view=rev
Log:
fix for RewriteOptions processing in r1798938

Modified:
    httpd/httpd/trunk/modules/mappers/mod_rewrite.c

Modified: httpd/httpd/trunk/modules/mappers/mod_rewrite.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/mappers/mod_rewrite.c?rev=1799261&r1=1799260&r2=1799261&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/mappers/mod_rewrite.c (original)
+++ httpd/httpd/trunk/modules/mappers/mod_rewrite.c Mon Jun 19 19:08:49 2017
@@ -4336,14 +4336,15 @@ static int apply_rewrite_list(request_re
     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 { 



Mime
View raw message