diff options
author | Stefan Bühler <stbuehler@web.de> | 2015-11-07 15:00:18 +0000 |
---|---|---|
committer | Stefan Bühler <stbuehler@web.de> | 2015-11-07 15:00:18 +0000 |
commit | 85d8a17575d8eba2f830f6c15283a45773fa78d8 (patch) | |
tree | a0f17e9220f4ce69e214f68b32bbadb65fbca7b1 /src/http-header-glue.c | |
parent | 3943de280e9966e064ae704e0e11aff155e875a9 (diff) | |
download | lighttpd-git-85d8a17575d8eba2f830f6c15283a45773fa78d8.tar.gz |
[core] encode path with ENCODING_REL_URI in redirect to directory (fixes #2661, thx gstrauss)
From: Stefan Bühler <stbuehler@web.de>
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3052 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/http-header-glue.c')
-rw-r--r-- | src/http-header-glue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http-header-glue.c b/src/http-header-glue.c index 4f970fe4..c0501f5b 100644 --- a/src/http-header-glue.c +++ b/src/http-header-glue.c @@ -201,7 +201,7 @@ int http_response_redirect_to_directory(server *srv, connection *con) { } } } - buffer_append_string_buffer(o, con->uri.path); + buffer_append_string_encoded(o, CONST_BUF_LEN(con->uri.path), ENCODING_REL_URI); buffer_append_string_len(o, CONST_STR_LEN("/")); if (!buffer_string_is_empty(con->uri.query)) { buffer_append_string_len(o, CONST_STR_LEN("?")); |