Fossil

Check-in [ac8e9e555d]
Login

Check-in [ac8e9e555d]

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

Overview
Comment:Issue a not-found error in CGI if using the "directory:" configuration and there is not PATH_INFO. Ticket [c481aa2fdbc67b7]
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: ac8e9e555d66e3240417286292d948a875689401
User & Date: drh 2014-08-12 19:35:03.636
Context
2014-08-12
20:18
Update the built-in SQLite to version 3.8.6 beta3. ... (check-in: 75c4808653 user: drh tags: trunk)
19:35
Issue a not-found error in CGI if using the "directory:" configuration and there is not PATH_INFO. Ticket [c481aa2fdbc67b7] ... (check-in: ac8e9e555d user: drh tags: trunk)
14:48
X-UA-Compatible (MSIE) HTTP header patch from Warren Young. ... (check-in: b7bebbe44f user: stephan tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/main.c.
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
        szFile = 1;
        break;
      }
      if( szFile==0 ){
        if( zRepo[0]=='/' && zRepo[1]=='/' ){ zRepo++; j--; }
        szFile = file_size(zRepo);
      }
      if( szFile<0 ){
        const char *zMimetype;
        assert( fossil_strcmp(&zRepo[j], ".fossil")==0 );
        zRepo[j] = 0;
        if( zPathInfo[i]=='/' && file_isdir(zRepo)==1 ){
          fossil_free(zToFree);
          i++;
          continue;







|







1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
        szFile = 1;
        break;
      }
      if( szFile==0 ){
        if( zRepo[0]=='/' && zRepo[1]=='/' ){ zRepo++; j--; }
        szFile = file_size(zRepo);
      }
      if( szFile<0 && i>0 ){
        const char *zMimetype;
        assert( fossil_strcmp(&zRepo[j], ".fossil")==0 );
        zRepo[j] = 0;
        if( zPathInfo[i]=='/' && file_isdir(zRepo)==1 ){
          fossil_free(zToFree);
          i++;
          continue;