Fossil

Check-in [9601b6cf]
Login

Check-in [9601b6cf]

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

Overview
Comment:Do not assume that missing SCRIPT_NAME and PATH_INFO environment variables for CGI have a value which is an empty string.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 9601b6cfc7470668b7d16aaa669a5dba02ffdcf0db7046ff717820ab526294b9
User & Date: drh 2020-08-27 12:34:04
Context
2020-08-27
15:11
Additional interlinking and clarification of CGI documentation. ... (check-in: 43fb402b user: drh tags: trunk)
12:34
Do not assume that missing SCRIPT_NAME and PATH_INFO environment variables for CGI have a value which is an empty string. ... (check-in: 9601b6cf user: drh tags: trunk)
01:37
Fix the server-side clone so that it is able to operate on a read-only repository database. ... (check-in: 147bf47d user: drh tags: trunk)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/cgi.c.

1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
*/
void cgi_init(void){
  char *z;
  const char *zType;
  char *zSemi;
  int len;
  const char *zRequestUri = cgi_parameter("REQUEST_URI",0);
  const char *zScriptName = cgi_parameter("SCRIPT_NAME","");
  const char *zPathInfo = cgi_parameter("PATH_INFO","");
#ifdef _WIN32
  const char *zServerSoftware = cgi_parameter("SERVER_SOFTWARE",0);
#endif

#ifdef FOSSIL_ENABLE_JSON
  const int noJson = P("no_json")!=0;
#endif







|
|







1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
*/
void cgi_init(void){
  char *z;
  const char *zType;
  char *zSemi;
  int len;
  const char *zRequestUri = cgi_parameter("REQUEST_URI",0);
  const char *zScriptName = cgi_parameter("SCRIPT_NAME",0);
  const char *zPathInfo = cgi_parameter("PATH_INFO",0);
#ifdef _WIN32
  const char *zServerSoftware = cgi_parameter("SERVER_SOFTWARE",0);
#endif

#ifdef FOSSIL_ENABLE_JSON
  const int noJson = P("no_json")!=0;
#endif