diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2018-09-15 23:55:35 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2018-09-23 18:01:58 -0400 |
commit | 2eabe1636c30fc064440dd415861a3961a7495a7 (patch) | |
tree | fd5218a51d7ca5ef4c9a5fda06f5cad90860f0bb /src/mod_rewrite.c | |
parent | eebc1b0eecd49e1390b353e716b368eaa84a16f0 (diff) | |
download | lighttpd-git-2eabe1636c30fc064440dd415861a3961a7495a7.tar.gz |
[mod_rewrite] fix url.rewrite-repeat and url.rewrite-if-not-file (fixes #2908)
regression in lighttpd 1.4.50
x-ref:
"mod_rewrite now throws error ENDLESS LOOP IN rewrite-rule DETECTED"
https://redmine.lighttpd.net/issues/2908
Diffstat (limited to 'src/mod_rewrite.c')
-rw-r--r-- | src/mod_rewrite.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_rewrite.c b/src/mod_rewrite.c index 232c12c6..f7e03169 100644 --- a/src/mod_rewrite.c +++ b/src/mod_rewrite.c @@ -196,11 +196,11 @@ static int mod_rewrite_patch_connection(server *srv, connection *con, plugin_dat } else if (buffer_is_equal_string(du->key, CONST_STR_LEN("url.rewrite-repeat"))) { PATCH(rewrite); p->conf.context = dc; - PATCH(rewrite_NF_repeat_idx); + PATCH(rewrite_repeat_idx); } else if (buffer_is_equal_string(du->key, CONST_STR_LEN("url.rewrite-if-not-file"))) { PATCH(rewrite_NF); p->conf.context_NF = dc; - PATCH(rewrite_repeat_idx); + PATCH(rewrite_NF_repeat_idx); } else if (buffer_is_equal_string(du->key, CONST_STR_LEN("url.rewrite-repeat-if-not-file"))) { PATCH(rewrite_NF); p->conf.context_NF = dc; |