Check-in [8f00221682]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
SHA1 Hash:8f002216829b6370593176b30498dd8231f3c514
Date: 2012-08-08 12:41:50
User: drh
Edited Comment:If no uuid= query parameter is used for the /tarball or /zip URIs, then use the latest checkin (aka "tip"). Ticket [300fc543b24250e256867].
Original Comment:If no uuid= query parameter is used for the /tarball or /zip URIs, then use the latest checkin (aka "tip").
Tags And Properties
Changes

Changes to src/tar.c

579 int nName, nRid; 579 int nName, nRid; 580 Blob tarball; 580 Blob tarball; 581 581 582 login_check_credentials(); 582 login_check_credentials(); 583 if( !g.perm.Zip ){ login_needed(); return; } 583 if( !g.perm.Zip ){ login_needed(); return; } 584 zName = mprintf("%s", PD("name","")); 584 zName = mprintf("%s", PD("name","")); 585 nName = strlen(zName); 585 nName = strlen(zName); 586 zRid = mprintf("%s", PD("uuid","")); | 586 zRid = mprintf("%s", PD("uuid","tip")); 587 nRid = strlen(zRid); 587 nRid = strlen(zRid); 588 if( nName>7 && fossil_strcmp(&zName[nName-7], ".tar.gz")==0 ){ 588 if( nName>7 && fossil_strcmp(&zName[nName-7], ".tar.gz")==0 ){ 589 /* Special case: Remove the ".tar.gz" suffix. */ 589 /* Special case: Remove the ".tar.gz" suffix. */ 590 nName -= 7; 590 nName -= 7; 591 zName[nName] = 0; 591 zName[nName] = 0; 592 }else{ 592 }else{ 593 /* If the file suffix is not ".tar.gz" then just remove the 593 /* If the file suffix is not ".tar.gz" then just remove the

Changes to src/zip.c

427 int nName, nRid; 427 int nName, nRid; 428 Blob zip; 428 Blob zip; 429 429 430 login_check_credentials(); 430 login_check_credentials(); 431 if( !g.perm.Zip ){ login_needed(); return; } 431 if( !g.perm.Zip ){ login_needed(); return; } 432 zName = mprintf("%s", PD("name","")); 432 zName = mprintf("%s", PD("name","")); 433 nName = strlen(zName); 433 nName = strlen(zName); 434 zRid = mprintf("%s", PD("uuid","")); | 434 zRid = mprintf("%s", PD("uuid","tip")); 435 nRid = strlen(zRid); 435 nRid = strlen(zRid); 436 for(nName=strlen(zName)-1; nName>5; nName--){ 436 for(nName=strlen(zName)-1; nName>5; nName--){ 437 if( zName[nName]=='.' ){ 437 if( zName[nName]=='.' ){ 438 zName[nName] = 0; 438 zName[nName] = 0; 439 break; 439 break; 440 } 440 } 441 } 441 }