Fossil

Check-in [fc15fe04]
Login

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

Overview
Comment:Added ability to access repositories via CGI that are located in a path containing whitespaces.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:fc15fe04180beab69e726e97a6b96628b0161111
User & Date: rimkojr 2011-07-09 16:12:16
Context
2011-07-10
12:05
Don't show the cookie values on the test_env page, unless the fossil executable was built with FOSSIL_DEBUG. check-in: 35ecc92b user: ben tags: trunk
2011-07-09
20:19
Initial check-in of Steve Bennett's autosetup configurator. check-in: ded86a4e user: drh tags: autosetup
16:12
Added ability to access repositories via CGI that are located in a path containing whitespaces. check-in: fc15fe04 user: rimkojr tags: trunk
2011-06-30
17:40
typo fix per ticket [fc0838fc72f079d2033ae] check-in: e50813e1 user: bch tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/main.c.

1100
1101
1102
1103
1104
1105
1106
1107

1108
1109
1110
1111
1112
1113
1114
      continue;
    }
    if( blob_eq(&key, "HOME:") && blob_token(&line, &value) ){
      cgi_setenv("HOME", blob_str(&value));
      blob_reset(&value);
      continue;
    }
    if( blob_eq(&key, "repository:") && blob_token(&line, &value) ){

      db_open_repository(blob_str(&value));
      blob_reset(&value);
      continue;
    }
    if( blob_eq(&key, "directory:") && blob_token(&line, &value) ){
      db_close(1);
      g.zRepositoryName = mprintf("%s", blob_str(&value));







|
>







1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
      continue;
    }
    if( blob_eq(&key, "HOME:") && blob_token(&line, &value) ){
      cgi_setenv("HOME", blob_str(&value));
      blob_reset(&value);
      continue;
    }
    if( blob_eq(&key, "repository:") && blob_tail(&line, &value) ){
      blob_trim(&value);
      db_open_repository(blob_str(&value));
      blob_reset(&value);
      continue;
    }
    if( blob_eq(&key, "directory:") && blob_token(&line, &value) ){
      db_close(1);
      g.zRepositoryName = mprintf("%s", blob_str(&value));