From a431326e8fab8153905fbde036dd3c9fb4cc8eaa Mon Sep 17 00:00:00 2001 From: Jason A. Donenfeld Date: Thu, 16 Jan 2014 23:21:54 +0100 Subject: 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 --- cgit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cgit.c') 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 -- cgit v1.2.3-70-g09d2