Fossil SCM

Fix typo in the previous comment that prevented from recognizing login cookies.

drh 2024-08-23 16:14 trunk
Commit dfce2f2b8f5bf289539953ee260e792d234f146fbc67c5e1cad174c166e13328
1 file changed +1 -1
+1 -1
--- src/cookies.c
+++ src/cookies.c
@@ -276,11 +276,11 @@
276276
if( fossil_strcmp(zName, zLoginCookie)==0 ){
277277
@ <p>This is your login cookie. If you delete this cookie, you will
278278
@ be logged out.
279279
}else
280280
if( fossil_strncmp(zName, "fossil-", 7)==0
281
- && strlen(zName)==32
281
+ && strlen(zName)==23
282282
&& hex_prefix_length(&zName[7])==16
283283
&& hex_prefix_length(zValue)>24
284284
){
285285
@ <p>This appears to be a login cookie for another Fossil repository
286286
@ in the same website.
287287
--- src/cookies.c
+++ src/cookies.c
@@ -276,11 +276,11 @@
276 if( fossil_strcmp(zName, zLoginCookie)==0 ){
277 @ <p>This is your login cookie. If you delete this cookie, you will
278 @ be logged out.
279 }else
280 if( fossil_strncmp(zName, "fossil-", 7)==0
281 && strlen(zName)==32
282 && hex_prefix_length(&zName[7])==16
283 && hex_prefix_length(zValue)>24
284 ){
285 @ <p>This appears to be a login cookie for another Fossil repository
286 @ in the same website.
287
--- src/cookies.c
+++ src/cookies.c
@@ -276,11 +276,11 @@
276 if( fossil_strcmp(zName, zLoginCookie)==0 ){
277 @ <p>This is your login cookie. If you delete this cookie, you will
278 @ be logged out.
279 }else
280 if( fossil_strncmp(zName, "fossil-", 7)==0
281 && strlen(zName)==23
282 && hex_prefix_length(&zName[7])==16
283 && hex_prefix_length(zValue)>24
284 ){
285 @ <p>This appears to be a login cookie for another Fossil repository
286 @ in the same website.
287

Keyboard Shortcuts

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