Fossil SCM
Enable the extroot: setting in CGI.
Commit
c116a9996b8bce11dabed57696742dbcdf74275fb2913430c40b2d2c7ca645de
Parent
08b9b619721be12…
1 file changed
+9
+9
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -2094,10 +2094,19 @@ | ||
| 2094 | 2094 | ** to FILENAME. |
| 2095 | 2095 | */ |
| 2096 | 2096 | g.zErrlog = mprintf("%s", blob_str(&value)); |
| 2097 | 2097 | blob_reset(&value); |
| 2098 | 2098 | continue; |
| 2099 | + } | |
| 2100 | + if( blob_eq(&key, "extroot:") && blob_token(&line, &value) ){ | |
| 2101 | + /* extroot: DIRECTORY | |
| 2102 | + ** | |
| 2103 | + ** Enables the /ext webpage to use sub-cgi rooted at DIRECTORY | |
| 2104 | + */ | |
| 2105 | + g.zExtRoot = mprintf("%s", blob_str(&value)); | |
| 2106 | + blob_reset(&value); | |
| 2107 | + continue; | |
| 2099 | 2108 | } |
| 2100 | 2109 | if( blob_eq(&key, "HOME:") && blob_token(&line, &value) ){ |
| 2101 | 2110 | /* HOME: VALUE |
| 2102 | 2111 | ** |
| 2103 | 2112 | ** Set CGI parameter "HOME" to VALUE. This is legacy. Use |
| 2104 | 2113 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -2094,10 +2094,19 @@ | |
| 2094 | ** to FILENAME. |
| 2095 | */ |
| 2096 | g.zErrlog = mprintf("%s", blob_str(&value)); |
| 2097 | blob_reset(&value); |
| 2098 | continue; |
| 2099 | } |
| 2100 | if( blob_eq(&key, "HOME:") && blob_token(&line, &value) ){ |
| 2101 | /* HOME: VALUE |
| 2102 | ** |
| 2103 | ** Set CGI parameter "HOME" to VALUE. This is legacy. Use |
| 2104 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -2094,10 +2094,19 @@ | |
| 2094 | ** to FILENAME. |
| 2095 | */ |
| 2096 | g.zErrlog = mprintf("%s", blob_str(&value)); |
| 2097 | blob_reset(&value); |
| 2098 | continue; |
| 2099 | } |
| 2100 | if( blob_eq(&key, "extroot:") && blob_token(&line, &value) ){ |
| 2101 | /* extroot: DIRECTORY |
| 2102 | ** |
| 2103 | ** Enables the /ext webpage to use sub-cgi rooted at DIRECTORY |
| 2104 | */ |
| 2105 | g.zExtRoot = mprintf("%s", blob_str(&value)); |
| 2106 | blob_reset(&value); |
| 2107 | continue; |
| 2108 | } |
| 2109 | if( blob_eq(&key, "HOME:") && blob_token(&line, &value) ){ |
| 2110 | /* HOME: VALUE |
| 2111 | ** |
| 2112 | ** Set CGI parameter "HOME" to VALUE. This is legacy. Use |
| 2113 |