Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Update the /tarball and /zip pages to return status code 404 if given an unknown checkin to download. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
a10fc448ed3fce5113c2a44d18df0172 |
User & Date: | drh 2017-06-09 13:09:32.759 |
Context
2017-06-11
| ||
04:37 | Fix some cases in wikiformat.c where it was assuming that a hash name would be UUID_SIZE or fewer characters, when in fact the size could be as many as HNAME_MAX characters. This is a change that we missed in the SHA3 cut-over. ... (check-in: e0757d27 user: drh tags: trunk) | |
2017-06-09
| ||
13:09 | Update the /tarball and /zip pages to return status code 404 if given an unknown checkin to download. ... (check-in: a10fc448 user: drh tags: trunk) | |
2017-06-08
| ||
19:10 | Remove extraneous backslashes in error messages in the ticket editing webpage. ... (check-in: b772b36d user: drh tags: trunk) | |
Changes
Changes to src/tar.c.
︙ | ︙ | |||
707 708 709 710 711 712 713 | for(nName=strlen(zName)-1; nName>5; nName--){ if( zName[nName]=='.' ){ zName[nName] = 0; break; } } } | | > | 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 | for(nName=strlen(zName)-1; nName>5; nName--){ if( zName[nName]=='.' ){ zName[nName] = 0; break; } } } rid = symbolic_name_to_rid(nRid?zRid:zName, "ci"); if( rid==0 ){ cgi_set_status(404, "Not Found"); @ Not found return; } if( nRid==0 && nName>10 ) zName[10] = 0; /* Compute a unique key for the cache entry based on query parameters */ blob_init(&cacheKey, 0, 0); |
︙ | ︙ |
Changes to src/zip.c.
︙ | ︙ | |||
563 564 565 566 567 568 569 | for(nName=strlen(zName)-1; nName>5; nName--){ if( zName[nName]=='.' ){ zName[nName] = 0; break; } } } | | | > | 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 | for(nName=strlen(zName)-1; nName>5; nName--){ if( zName[nName]=='.' ){ zName[nName] = 0; break; } } } rid = symbolic_name_to_rid(nRid?zRid:zName, "ci"); if( rid<=0 ){ cgi_set_status(404, "Not Found"); @ Not found return; } if( nRid==0 && nName>10 ) zName[10] = 0; /* Compute a unique key for the cache entry based on query parameters */ blob_init(&cacheKey, 0, 0); |
︙ | ︙ |