X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fcontext_loop.c;h=ff95e825ebe5ad428d604b610d8621ae6a6a327f;hb=a648fdc96cf64d183b394f9b46822b4104192528;hp=e9f9401952310010b02c0f65615d4cd5fc83c4dd;hpb=91238fd122152d8127d2b6974ecec24b08fe26c5;p=citadel.git diff --git a/webcit/context_loop.c b/webcit/context_loop.c index e9f940195..ff95e825e 100644 --- a/webcit/context_loop.c +++ b/webcit/context_loop.c @@ -4,7 +4,7 @@ * keep track of things. If the HTTP request doesn't belong to any currently * active session, a new session is started. * - * Copyright (c) 1996-2011 by the citadel.org team + * Copyright (c) 1996-2012 by the citadel.org team * * This program is open source software. You can redistribute it and/or * modify it under the terms of the GNU General Public License version 3. @@ -335,10 +335,12 @@ int ReadHttpSubject(ParsedHttpHdrs *Hdr, StrBuf *Line, StrBuf *Buf) } else { /* If this is a "flat" request for the root, display the configured landing page. */ + int return_value; + StrBuf *NewLine = NewStrBuf(); Hdr->HR.DontNeedAuth = 1; - StrBuf *NewLine = NewStrBufPlain(HKEY("GET /landing HTTP/1.0")); + 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); + return_value = ReadHttpSubject(Hdr, NewLine, Buf); FreeStrBuf(&NewLine); return return_value; }