Fossil

Check-in [94bb3134]
Login

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

Overview
Comment:Force the method to be /xfer if the content type is application/x-fossil.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:94bb313444b0165e879560c90899dae2126ab598
User & Date: drh 2010-02-05 16:57:58
References
2010-02-16
19:44 New ticket [993287b3] Patch to allow sidebox to be skinable.. artifact: 6a3d4a69 user: anonymous
Context
2010-02-05
21:09
Accept date/time strings as a valid tag. They resolve to the most recent check-in prior to the given date/time. check-in: 93827b84 user: drh tags: trunk
16:57
Force the method to be /xfer if the content type is application/x-fossil. check-in: 94bb3134 user: drh tags: trunk
16:22
The RSS feed is restricted to the permissions granted to user 'nobody'. Ticket [09ba8cea6f] check-in: 78a6270f user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/main.c.

676
677
678
679
680
681
682



683
684
685
686
687
688
689
          zRepo, zPathInfo, zNewScript);
    }
  }

  /* Find the page that the user has requested, construct and deliver that
  ** page.
  */



  set_base_url();
  if( zPathInfo==0 || zPathInfo[0]==0 
      || (zPathInfo[0]=='/' && zPathInfo[1]==0) ){
    fossil_redirect_home();
  }else{
    zPath = mprintf("%s", zPathInfo);
  }







>
>
>







676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
          zRepo, zPathInfo, zNewScript);
    }
  }

  /* Find the page that the user has requested, construct and deliver that
  ** page.
  */
  if( g.zContentType && memcmp(g.zContentType, "application/x-fossil", 20)==0 ){
    zPathInfo = "/xfer";
  }
  set_base_url();
  if( zPathInfo==0 || zPathInfo[0]==0 
      || (zPathInfo[0]=='/' && zPathInfo[1]==0) ){
    fossil_redirect_home();
  }else{
    zPath = mprintf("%s", zPathInfo);
  }