summaryrefslogtreecommitdiffstatshomepage
path: root/cgit.c
diff options
context:
space:
mode:
authorJason A. Donenfeld2014-01-16 23:21:54 +0100
committerJason A. Donenfeld2014-01-16 23:21:54 +0100
commita431326e8fab8153905fbde036dd3c9fb4cc8eaa (patch)
treeeaff3c6984a1c518c0180d5437853243ca6346a4 /cgit.c
parentdf00ab1096868b3cffe563c48de5572f78b50392 (diff)
downloadcgit-a431326e8fab8153905fbde036dd3c9fb4cc8eaa.tar.gz
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>
Diffstat (limited to '')
-rw-r--r--cgit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cgit.c b/cgit.c
index be1265d..994957f 100644
--- a/cgit.c
+++ b/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