mirror of
https://git.zx2c4.com/cgit
synced 2025-07-01 22:04:32 +02:00
auth: have cgit calculate login address
This way we're sure to use virtual root, or any other strangeness encountered. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
df00ab1096
commit
a431326e8f
6 changed files with 16 additions and 10 deletions
3
cgit.c
3
cgit.c
|
@ -611,7 +611,8 @@ static inline void open_auth_filter(struct cgit_context *ctx, const char *functi
|
|||
ctx->env.https ? ctx->env.https : "",
|
||||
ctx->qry.repo ? ctx->qry.repo : "",
|
||||
ctx->qry.page ? ctx->qry.page : "",
|
||||
ctx->qry.url ? ctx->qry.url : "");
|
||||
ctx->qry.url ? ctx->qry.url : "",
|
||||
cgit_loginurl());
|
||||
}
|
||||
|
||||
/* We intentionally keep this rather small, instead of looping and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue