Fossil

Check-in [8f002216]
Login

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

Overview
Comment:If no uuid= query parameter is used for the /tarball or /zip URIs, then use the latest checkin (aka "tip"). Ticket [300fc543b24250e256867].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 8f002216829b6370593176b30498dd8231f3c514
User & Date: drh 2012-08-08 12:41:50
Original Comment: If no uuid= query parameter is used for the /tarball or /zip URIs, then use the latest checkin (aka "tip").
Context
2012-08-08
13:04
Changes "make install" so that it makes sure that the installation directory actually exists. Ticket [6e23fe11013961]. check-in: 426e8edc user: drh tags: trunk
12:41
If no uuid= query parameter is used for the /tarball or /zip URIs, then use the latest checkin (aka "tip"). Ticket [300fc543b24250e256867]. check-in: 8f002216 user: drh tags: trunk
12:36
Avoid freeing memory that might not have been malloced in the "ticket" command with the --quote option. Ticket [6dba56543b89dc4]. check-in: 0bc2a941 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/tar.c.

579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
  int nName, nRid;
  Blob tarball;

  login_check_credentials();
  if( !g.perm.Zip ){ login_needed(); return; }
  zName = mprintf("%s", PD("name",""));
  nName = strlen(zName);
  zRid = mprintf("%s", PD("uuid",""));
  nRid = strlen(zRid);
  if( nName>7 && fossil_strcmp(&zName[nName-7], ".tar.gz")==0 ){
    /* Special case:  Remove the ".tar.gz" suffix.  */
    nName -= 7;
    zName[nName] = 0;
  }else{
    /* If the file suffix is not ".tar.gz" then just remove the







|







579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
  int nName, nRid;
  Blob tarball;

  login_check_credentials();
  if( !g.perm.Zip ){ login_needed(); return; }
  zName = mprintf("%s", PD("name",""));
  nName = strlen(zName);
  zRid = mprintf("%s", PD("uuid","tip"));
  nRid = strlen(zRid);
  if( nName>7 && fossil_strcmp(&zName[nName-7], ".tar.gz")==0 ){
    /* Special case:  Remove the ".tar.gz" suffix.  */
    nName -= 7;
    zName[nName] = 0;
  }else{
    /* If the file suffix is not ".tar.gz" then just remove the

Changes to src/zip.c.

427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
  int nName, nRid;
  Blob zip;

  login_check_credentials();
  if( !g.perm.Zip ){ login_needed(); return; }
  zName = mprintf("%s", PD("name",""));
  nName = strlen(zName);
  zRid = mprintf("%s", PD("uuid",""));
  nRid = strlen(zRid);
  for(nName=strlen(zName)-1; nName>5; nName--){
    if( zName[nName]=='.' ){
      zName[nName] = 0;
      break;
    }
  }







|







427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
  int nName, nRid;
  Blob zip;

  login_check_credentials();
  if( !g.perm.Zip ){ login_needed(); return; }
  zName = mprintf("%s", PD("name",""));
  nName = strlen(zName);
  zRid = mprintf("%s", PD("uuid","tip"));
  nRid = strlen(zRid);
  for(nName=strlen(zName)-1; nName>5; nName--){
    if( zName[nName]=='.' ){
      zName[nName] = 0;
      break;
    }
  }