diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-01-17 07:21:54 (JST) |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-01-17 07:21:54 (JST) |
commit | a431326e8fab8153905fbde036dd3c9fb4cc8eaa (patch) | |
tree | eaff3c6984a1c518c0180d5437853243ca6346a4 /cgit.c | |
parent | df00ab1096868b3cffe563c48de5572f78b50392 (diff) | |
download | cgit-a431326e8fab8153905fbde036dd3c9fb4cc8eaa.zip cgit-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 'cgit.c')
-rw-r--r-- | cgit.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -611,7 +611,8 @@ static inline void open_auth_filter(struct cgit_context *ctx, const char *functi | |||
611 | ctx->env.https ? ctx->env.https : "", | 611 | ctx->env.https ? ctx->env.https : "", |
612 | ctx->qry.repo ? ctx->qry.repo : "", | 612 | ctx->qry.repo ? ctx->qry.repo : "", |
613 | ctx->qry.page ? ctx->qry.page : "", | 613 | ctx->qry.page ? ctx->qry.page : "", |
614 | ctx->qry.url ? ctx->qry.url : ""); | 614 | ctx->qry.url ? ctx->qry.url : "", |
615 | cgit_loginurl()); | ||
615 | } | 616 | } |
616 | 617 | ||
617 | /* We intentionally keep this rather small, instead of looping and | 618 | /* We intentionally keep this rather small, instead of looping and |