From: Art Cancro Date: Sat, 27 Aug 2011 23:25:57 +0000 (-0400) Subject: Clear of non-default language setting moved to its proper place X-Git-Tag: v8.11~502 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=6f15cc2bff396cec081b969bf5b3097bfbafe4d5 Clear of non-default language setting moved to its proper place --- diff --git a/webcit/context_loop.c b/webcit/context_loop.c index 3122ce494..f3d54c4ce 100644 --- a/webcit/context_loop.c +++ b/webcit/context_loop.c @@ -612,12 +612,12 @@ void context_loop(ParsedHttpHdrs *Hdr) * spider crawls the site without using cookies. */ if ((session_may_be_reused) && (!WC->logged_in)) { - WC->wc_session = 0; + WC->wc_session = 0; /* flag as available for re-use */ + TheSession->selected_language = 0; /* clear any non-default language setting */ } 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)); }