projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5671cc8
)
Clear selected_language when marking a guest session as inuse=0.
author
Art Cancro
<ajc@uncensored.citadel.org>
Fri, 19 Aug 2011 19:12:50 +0000
(15:12 -0400)
committer
Art Cancro
<ajc@uncensored.citadel.org>
Fri, 19 Aug 2011 19:12:50 +0000
(15:12 -0400)
This prevents new visitors from seeing their first page in Chinese after Baidu comes calling.
webcit/context_loop.c
patch
|
blob
|
history
diff --git
a/webcit/context_loop.c
b/webcit/context_loop.c
index 032606708316f7a51358af7c86d547ba9bdc621b..3122ce49448fbf43e2563ec0f79d29a1b32633b0 100644
(file)
--- 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));
}