From: Art Cancro Date: Fri, 19 Aug 2011 19:12:50 +0000 (-0400) Subject: Clear selected_language when marking a guest session as inuse=0. X-Git-Tag: v8.11~517 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=c31008054e485ac5b40a692319646af78a397875 Clear selected_language when marking a guest session as inuse=0. This prevents new visitors from seeing their first page in Chinese after Baidu comes calling. --- diff --git a/webcit/context_loop.c b/webcit/context_loop.c index 032606708..3122ce494 100644 --- a/webcit/context_loop.c +++ b/webcit/context_loop.c @@ -617,6 +617,7 @@ void context_loop(ParsedHttpHdrs *Hdr) TheSession->Hdr = NULL; TheSession->inuse = 0; /* mark the session as unbound */ + TheSession->selected_language = 0; /* clear any non-default language setting */ CtdlLogResult(pthread_mutex_unlock(&TheSession->SessionMutex)); }