Fossil

Check-in [23d45ff9]
Login

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

Overview
Comment:An empty username on a U card is translated into "anonymous".
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 23d45ff9ce35a772aecb00ee4a74650dc30ef85046b5f8cab654531a6e67f138
User & Date: drh 2017-07-08 13:35:29.514
Context
2017-07-08
20:42
Improve built-in Markdown reference documentation to describe more features I long wished Markdown had but just now discovered it already does ... (check-in: 3bfdafe4 user: andygoth tags: trunk)
13:35
An empty username on a U card is translated into "anonymous". ... (check-in: 23d45ff9 user: drh tags: trunk)
2017-07-07
19:18
Avoid appending to g.zPath inside doc_page() loop. Instead, wait until the loop is done to modify g.zPath. When doing a directory lookup, the check-in and directory name were being repeatedly appended to g.zPath each step through the list of possible filename suffixes. This corrupted <base href> should index.html not exist, which in turn broke relative URLs. ... (check-in: 956d4901 user: andygoth tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/manifest.c.
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
      ** 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': {
        if( p->zUser!=0 ) SYNTAX("more than one U-card");
        p->zUser = next_token(&x, 0);
        if( p->zUser==0 ){
          p->zUser = "anonymous";
        }else{
          defossilize(p->zUser);
        }
        break;
      }








|







802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
      ** 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': {
        if( p->zUser!=0 ) SYNTAX("more than one U-card");
        p->zUser = next_token(&x, 0);
        if( p->zUser==0 || p->zUser[0]==0 ){
          p->zUser = "anonymous";
        }else{
          defossilize(p->zUser);
        }
        break;
      }