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
personal/stbuehler/wip
Stefan Bühler 1 year ago
parent
commit
51a7fd577c
  1. 2
      src/main/virtualrequest.c

2
src/main/virtualrequest.c

@ -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