Browse Source

[core]: fix query string handling in li_vrequest_redirect_directory (dirlist, index)

- use decoded path instead of orig raw path (which includes the query
  string); the decoded path should be safe, and we also really don't
  need to support any "raw" handling - we're at the filesystem level
  anyway.

Change-Id: Ic9a5b362bea9813873631b18aaa908c59f2bb0a6
master
Stefan Bühler 3 months ago
parent
commit
51a7fd577c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/virtualrequest.c

+ 1
- 1
src/main/virtualrequest.c View File

@@ -563,7 +563,7 @@ gboolean li_vrequest_redirect_directory(liVRequest *vr) {
} else {
g_string_append_len(uri, GSTR_LEN(vr->coninfo->local_addr_str));
}
g_string_append_len(uri, GSTR_LEN(vr->request.uri.raw_orig_path));
g_string_append_len(uri, GSTR_LEN(vr->request.uri.path));
g_string_append_c(uri, '/');
if (vr->request.uri.query->len) {
g_string_append_c(uri, '?');


Loading…
Cancel
Save