Fossil SCM
Fix typo in the previous comment that prevented from recognizing login cookies.
Commit
dfce2f2b8f5bf289539953ee260e792d234f146fbc67c5e1cad174c166e13328
Parent
10949f530084a92…
1 file changed
+1
-1
+1
-1
| --- src/cookies.c | ||
| +++ src/cookies.c | ||
| @@ -276,11 +276,11 @@ | ||
| 276 | 276 | if( fossil_strcmp(zName, zLoginCookie)==0 ){ |
| 277 | 277 | @ <p>This is your login cookie. If you delete this cookie, you will |
| 278 | 278 | @ be logged out. |
| 279 | 279 | }else |
| 280 | 280 | if( fossil_strncmp(zName, "fossil-", 7)==0 |
| 281 | - && strlen(zName)==32 | |
| 281 | + && strlen(zName)==23 | |
| 282 | 282 | && hex_prefix_length(&zName[7])==16 |
| 283 | 283 | && hex_prefix_length(zValue)>24 |
| 284 | 284 | ){ |
| 285 | 285 | @ <p>This appears to be a login cookie for another Fossil repository |
| 286 | 286 | @ in the same website. |
| 287 | 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)==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 |