diff options
author | mOo <moo.lighttpd@gmail.com> | 2005-09-29 15:23:09 +0000 |
---|---|---|
committer | mOo <moo.lighttpd@gmail.com> | 2005-09-29 15:23:09 +0000 |
commit | 1f855b34dd5bfddcb9007c004fe0e7518ae6052a (patch) | |
tree | 98dd78d7e3e4098a88210783e4a4565a53a607a0 | |
parent | 9be1abfb85fb7b572c36ab62bdb904a9f2e4799b (diff) | |
download | lighttpd-git-1f855b34dd5bfddcb9007c004fe0e7518ae6052a.tar.gz |
make %1 %2 etc works instead of SEGV
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@758 152afb58-edef-0310-8abb-c4023f1b3aa9
-rw-r--r-- | src/mod_rewrite.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mod_rewrite.c b/src/mod_rewrite.c index 915f638d..ff152a98 100644 --- a/src/mod_rewrite.c +++ b/src/mod_rewrite.c @@ -288,12 +288,16 @@ static int mod_rewrite_patch_connection(server *srv, connection *con, plugin_dat if (buffer_is_equal_string(du->key, CONST_STR_LEN("url.rewrite"))) { p->conf.rewrite = s->rewrite; + p->conf.context = dc; } else if (buffer_is_equal_string(du->key, CONST_STR_LEN("url.rewrite-once"))) { p->conf.rewrite = s->rewrite; + p->conf.context = dc; } else if (buffer_is_equal_string(du->key, CONST_STR_LEN("url.rewrite-repeat"))) { p->conf.rewrite = s->rewrite; + p->conf.context = dc; } else if (buffer_is_equal_string(du->key, CONST_STR_LEN("url.rewrite-final"))) { p->conf.rewrite = s->rewrite; + p->conf.context = dc; } } } |