auth-filter: pass url with query string attached

Otherwise redirections come out wrong.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld
2018-11-21 03:16:11 +01:00
rodzic a22855747e
commit 898b9e19e0
3 zmienionych plików z 37 dodań i 3 usunięć

2
cgit.c
Wyświetl plik

@ -645,7 +645,7 @@ static inline void open_auth_filter(const char *function)
ctx.env.https ? ctx.env.https : "",
ctx.qry.repo ? ctx.qry.repo : "",
ctx.qry.page ? ctx.qry.page : "",
ctx.qry.url ? ctx.qry.url : "",
cgit_currentfullurl(),
cgit_loginurl());
}