Fossil SCM
s/guest/nobody/g in login_clear_login_data() query.
Commit
a72a8a80d881d92ffd1d6606de07d9baa4b61535
Parent
f6debb5c9535342…
1 file changed
+1
-1
+1
-1
| --- src/login.c | ||
| +++ src/login.c | ||
| @@ -342,11 +342,11 @@ | ||
| 342 | 342 | /* To logout, change the cookie value to an empty string */ |
| 343 | 343 | cgi_set_cookie(cookie, "", |
| 344 | 344 | login_cookie_path(), -86400); |
| 345 | 345 | db_multi_exec("UPDATE user SET cookie=NULL, ipaddr=NULL, " |
| 346 | 346 | " cexpire=0 WHERE uid=%d" |
| 347 | - " AND login NOT IN ('anonymous','guest'," | |
| 347 | + " AND login NOT IN ('anonymous','nobody'," | |
| 348 | 348 | " 'developer','reader')", g.userUid); |
| 349 | 349 | cgi_replace_parameter(cookie, NULL) |
| 350 | 350 | /* At the time of this writing, cgi_replace_parameter() was |
| 351 | 351 | ** "NULL-value-safe", and i'm hoping the NULL doesn't cause any |
| 352 | 352 | ** downstream problems here. We could alternately use "" here. |
| 353 | 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','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 |