Check-in [c116a9996b]
Not logged in

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

Overview
Comment:Enable the extroot: setting in CGI.
Timelines: family | ancestors | descendants | both | extension-cgi
Files: files | file ages | folders
SHA3-256: c116a9996b8bce11dabed57696742dbcdf74275fb2913430c40b2d2c7ca645de
User & Date: drh 2019-07-25 20:20:13.082
Context
2019-07-25
20:53
Ensure that the cgi_decode_post_parameters() routine does not delete the raw content used by the /xfer page. check-in: af3a8dbe09 user: drh tags: extension-cgi
20:20
Enable the extroot: setting in CGI. check-in: c116a9996b user: drh tags: extension-cgi
19:53
Do not provide failure diagnostics on the /ext page unless the user has Debug privilege. check-in: 08b9b61972 user: drh tags: extension-cgi
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/main.c.
2092
2093
2094
2095
2096
2097
2098









2099
2100
2101
2102
2103
2104
2105
      **
      ** Causes messages from warnings, errors, and panics to be appended
      ** to FILENAME.
      */
      g.zErrlog = mprintf("%s", blob_str(&value));
      blob_reset(&value);
      continue;









    }
    if( blob_eq(&key, "HOME:") && blob_token(&line, &value) ){
      /* HOME: VALUE
      **
      ** Set CGI parameter "HOME" to VALUE.  This is legacy.  Use
      ** setenv: instead.
      */







>
>
>
>
>
>
>
>
>







2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
      **
      ** Causes messages from warnings, errors, and panics to be appended
      ** to FILENAME.
      */
      g.zErrlog = mprintf("%s", blob_str(&value));
      blob_reset(&value);
      continue;
    }
    if( blob_eq(&key, "extroot:") && blob_token(&line, &value) ){
      /* extroot: DIRECTORY
      **
      ** Enables the /ext webpage to use sub-cgi rooted at DIRECTORY
      */
      g.zExtRoot = mprintf("%s", blob_str(&value));
      blob_reset(&value);
      continue;
    }
    if( blob_eq(&key, "HOME:") && blob_token(&line, &value) ){
      /* HOME: VALUE
      **
      ** Set CGI parameter "HOME" to VALUE.  This is legacy.  Use
      ** setenv: instead.
      */