Fossil

Check-in [6eddf50c]
Login

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

Overview
Comment:Allow the U card of a ticket change artifact to have no argument. When that happens, the user is assumed to be "anonymous". Ticket [1b4f9f30c1]
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:6eddf50cfee715099d3eebe3c313e96d939cf2c1
User & Date: drh 2008-11-09 13:41:39
Original Comment: All the U card of a ticket change artifact to have no argument. When that happens, the user is assumed to be "anonymous".
References
2008-11-09
23:02 Fixed ticket [1b4f9f30]: Error when submitting a new bug report. plus 2 other changes artifact: e0e7bcd4 user: drh
Context
2008-11-09
16:15
Fix the "help" text for the "all" command. check-in: bcb9c072 user: drh tags: trunk
13:41
Allow the U card of a ticket change artifact to have no argument. When that happens, the user is assumed to be "anonymous". Ticket [1b4f9f30c1] check-in: 6eddf50c user: drh tags: trunk
13:22
Make sure the tkt_uuid and tkt_datetime TH1 variables are initialized on a ticket display, even if no matching ticket is found. check-in: 2664476f user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/manifest.c.

516
517
518
519
520
521
522
523
524
525
526

527
528
529
530
531
532

533
534


535
536
537
538
539
540
541
        if( i>0 && strcmp(p->aTag[i-1].zName, zName)>=0 ){
          goto manifest_syntax_error;
        }
        break;
      }

      /*
      **     U <login>
      **
      ** Identify the user who created this control file by their
      ** login.  Only one U line is allowed.  Prohibited in clusters.

      */
      case 'U': {
        md5sum_step_text(blob_buffer(&line), blob_size(&line));
        if( p->zUser!=0 ) goto manifest_syntax_error;
        if( blob_token(&line, &a1)==0 ) goto manifest_syntax_error;
        if( blob_token(&line, &a2)!=0 ) goto manifest_syntax_error;

        p->zUser = blob_terminate(&a1);
        defossilize(p->zUser);


        break;
      }

      /*
      **     W <size>
      **
      ** The next <size> bytes of the file contain the text of the wiki







|



>




|
|
>
|
|
>
>







516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
        if( i>0 && strcmp(p->aTag[i-1].zName, zName)>=0 ){
          goto manifest_syntax_error;
        }
        break;
      }

      /*
      **     U ?<login>?
      **
      ** Identify the user who created this control file by their
      ** login.  Only one U line is allowed.  Prohibited in clusters.
      ** If the user name is omitted, take that to be "anonymous".
      */
      case 'U': {
        md5sum_step_text(blob_buffer(&line), blob_size(&line));
        if( p->zUser!=0 ) goto manifest_syntax_error;
        if( blob_token(&line, &a1)==0 ){
          p->zUser = "anonymous";
        }else{
          p->zUser = blob_terminate(&a1);
          defossilize(p->zUser);
        }
        if( blob_token(&line, &a2)!=0 ) goto manifest_syntax_error;
        break;
      }

      /*
      **     W <size>
      **
      ** The next <size> bytes of the file contain the text of the wiki