Fossil SCM

s/guest/nobody/g in login_clear_login_data() query.

stephan 2011-11-01 02:41 json-multitag-test
Commit a72a8a80d881d92ffd1d6606de07d9baa4b61535
1 file changed +1 -1
+1 -1
--- src/login.c
+++ src/login.c
@@ -342,11 +342,11 @@
342342
/* To logout, change the cookie value to an empty string */
343343
cgi_set_cookie(cookie, "",
344344
login_cookie_path(), -86400);
345345
db_multi_exec("UPDATE user SET cookie=NULL, ipaddr=NULL, "
346346
" cexpire=0 WHERE uid=%d"
347
- " AND login NOT IN ('anonymous','guest',"
347
+ " AND login NOT IN ('anonymous','nobody',"
348348
" 'developer','reader')", g.userUid);
349349
cgi_replace_parameter(cookie, NULL)
350350
/* At the time of this writing, cgi_replace_parameter() was
351351
** "NULL-value-safe", and i'm hoping the NULL doesn't cause any
352352
** downstream problems here. We could alternately use "" here.
353353
--- src/login.c
+++ src/login.c
@@ -342,11 +342,11 @@
342 /* To logout, change the cookie value to an empty string */
343 cgi_set_cookie(cookie, "",
344 login_cookie_path(), -86400);
345 db_multi_exec("UPDATE user SET cookie=NULL, ipaddr=NULL, "
346 " cexpire=0 WHERE uid=%d"
347 " AND login NOT IN ('anonymous','guest',"
348 " 'developer','reader')", g.userUid);
349 cgi_replace_parameter(cookie, NULL)
350 /* At the time of this writing, cgi_replace_parameter() was
351 ** "NULL-value-safe", and i'm hoping the NULL doesn't cause any
352 ** downstream problems here. We could alternately use "" here.
353
--- src/login.c
+++ src/login.c
@@ -342,11 +342,11 @@
342 /* To logout, change the cookie value to an empty string */
343 cgi_set_cookie(cookie, "",
344 login_cookie_path(), -86400);
345 db_multi_exec("UPDATE user SET cookie=NULL, ipaddr=NULL, "
346 " cexpire=0 WHERE uid=%d"
347 " AND login NOT IN ('anonymous','nobody',"
348 " 'developer','reader')", g.userUid);
349 cgi_replace_parameter(cookie, NULL)
350 /* At the time of this writing, cgi_replace_parameter() was
351 ** "NULL-value-safe", and i'm hoping the NULL doesn't cause any
352 ** downstream problems here. We could alternately use "" here.
353

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button