X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fcontext_loop.c;h=dc74601e1b9ecdf4cb161275c7b046efc21ceb29;hb=095de21d2211d73d50677a2f3f2ee6da59ead5a2;hp=e9f9401952310010b02c0f65615d4cd5fc83c4dd;hpb=f12cbff815e95a2084eba2f80dc59f7259383247;p=citadel.git diff --git a/webcit/context_loop.c b/webcit/context_loop.c index e9f940195..dc74601e1 100644 --- a/webcit/context_loop.c +++ b/webcit/context_loop.c @@ -336,7 +336,8 @@ int ReadHttpSubject(ParsedHttpHdrs *Hdr, StrBuf *Line, StrBuf *Buf) else { /* If this is a "flat" request for the root, display the configured landing page. */ Hdr->HR.DontNeedAuth = 1; - StrBuf *NewLine = NewStrBufPlain(HKEY("GET /landing HTTP/1.0")); + StrBuf *NewLine = NewStrBuf(); + StrBufAppendPrintf(NewLine, "GET /landing?go=%s HTTP/1.0", ChrPtr(Buf)); syslog(LOG_DEBUG, "Replacing with: %s", ChrPtr(NewLine)); int return_value = ReadHttpSubject(Hdr, NewLine, Buf); FreeStrBuf(&NewLine);