Fossil SCM
More refinements.
Commit
c1f4a84694485ad8f020cf93b2c6bb5f4991b96b1781d47f6249ddd2efd86868
Parent
ab0d81f893b1f60…
2 files changed
+6
-1
+9
+6
-1
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -731,11 +731,11 @@ | ||
| 731 | 731 | fossil_exit(1); |
| 732 | 732 | }else{ |
| 733 | 733 | const char *zChdir = find_option("chdir",0,1); |
| 734 | 734 | g.isHTTP = 0; |
| 735 | 735 | g.rcvid = 0; |
| 736 | - g.cgiUpperParamsOk = find_option("cgiupperparamsok", 0, 0)!=0; | |
| 736 | + g.cgiUpperParamsOk = find_option("cgiupperok", 0, 0)!=0; | |
| 737 | 737 | g.fQuiet = find_option("quiet", 0, 0)!=0; |
| 738 | 738 | g.fSqlTrace = find_option("sqltrace", 0, 0)!=0; |
| 739 | 739 | g.fSqlStats = find_option("sqlstats", 0, 0)!=0; |
| 740 | 740 | g.fSystemTrace = find_option("systemtrace", 0, 0)!=0; |
| 741 | 741 | g.fSshTrace = find_option("sshtrace", 0, 0)!=0; |
| @@ -1949,10 +1949,13 @@ | ||
| 1949 | 1949 | ** showing a list of available repositories if |
| 1950 | 1950 | ** the URL is "/". |
| 1951 | 1951 | ** |
| 1952 | 1952 | ** localauth Grant administrator privileges to connections |
| 1953 | 1953 | ** from 127.0.0.1 or ::1. |
| 1954 | +** | |
| 1955 | +** uppercase_params Allows CGI parameter names to begin with an | |
| 1956 | +** uppercase letter. | |
| 1954 | 1957 | ** |
| 1955 | 1958 | ** skin: LABEL Use the built-in skin called LABEL rather than |
| 1956 | 1959 | ** the default. If there are no skins called LABEL |
| 1957 | 1960 | ** then this line is a no-op. |
| 1958 | 1961 | ** |
| @@ -2308,10 +2311,12 @@ | ||
| 2308 | 2311 | ** --host NAME specify hostname of the server |
| 2309 | 2312 | ** --https signal a request coming in via https |
| 2310 | 2313 | ** --in FILE Take input from FILE instead of standard input |
| 2311 | 2314 | ** --ipaddr ADDR Assume the request comes from the given IP address |
| 2312 | 2315 | ** --localauth enable automatic login for local connections |
| 2316 | +** --cgiupperok Allows CGI parameter names to begin with an uppercase | |
| 2317 | +** letter. | |
| 2313 | 2318 | ** --nocompress do not compress HTTP replies |
| 2314 | 2319 | ** --nodelay omit backoffice processing if it would delay process exit |
| 2315 | 2320 | ** --nojail drop root privilege but do not enter the chroot jail |
| 2316 | 2321 | ** --nossl signal that no SSL connections are available |
| 2317 | 2322 | ** --notfound URL use URL as "HTTP 404, object not found" page. |
| 2318 | 2323 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -731,11 +731,11 @@ | |
| 731 | fossil_exit(1); |
| 732 | }else{ |
| 733 | const char *zChdir = find_option("chdir",0,1); |
| 734 | g.isHTTP = 0; |
| 735 | g.rcvid = 0; |
| 736 | g.cgiUpperParamsOk = find_option("cgiupperparamsok", 0, 0)!=0; |
| 737 | g.fQuiet = find_option("quiet", 0, 0)!=0; |
| 738 | g.fSqlTrace = find_option("sqltrace", 0, 0)!=0; |
| 739 | g.fSqlStats = find_option("sqlstats", 0, 0)!=0; |
| 740 | g.fSystemTrace = find_option("systemtrace", 0, 0)!=0; |
| 741 | g.fSshTrace = find_option("sshtrace", 0, 0)!=0; |
| @@ -1949,10 +1949,13 @@ | |
| 1949 | ** showing a list of available repositories if |
| 1950 | ** the URL is "/". |
| 1951 | ** |
| 1952 | ** localauth Grant administrator privileges to connections |
| 1953 | ** from 127.0.0.1 or ::1. |
| 1954 | ** |
| 1955 | ** skin: LABEL Use the built-in skin called LABEL rather than |
| 1956 | ** the default. If there are no skins called LABEL |
| 1957 | ** then this line is a no-op. |
| 1958 | ** |
| @@ -2308,10 +2311,12 @@ | |
| 2308 | ** --host NAME specify hostname of the server |
| 2309 | ** --https signal a request coming in via https |
| 2310 | ** --in FILE Take input from FILE instead of standard input |
| 2311 | ** --ipaddr ADDR Assume the request comes from the given IP address |
| 2312 | ** --localauth enable automatic login for local connections |
| 2313 | ** --nocompress do not compress HTTP replies |
| 2314 | ** --nodelay omit backoffice processing if it would delay process exit |
| 2315 | ** --nojail drop root privilege but do not enter the chroot jail |
| 2316 | ** --nossl signal that no SSL connections are available |
| 2317 | ** --notfound URL use URL as "HTTP 404, object not found" page. |
| 2318 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -731,11 +731,11 @@ | |
| 731 | fossil_exit(1); |
| 732 | }else{ |
| 733 | const char *zChdir = find_option("chdir",0,1); |
| 734 | g.isHTTP = 0; |
| 735 | g.rcvid = 0; |
| 736 | g.cgiUpperParamsOk = find_option("cgiupperok", 0, 0)!=0; |
| 737 | g.fQuiet = find_option("quiet", 0, 0)!=0; |
| 738 | g.fSqlTrace = find_option("sqltrace", 0, 0)!=0; |
| 739 | g.fSqlStats = find_option("sqlstats", 0, 0)!=0; |
| 740 | g.fSystemTrace = find_option("systemtrace", 0, 0)!=0; |
| 741 | g.fSshTrace = find_option("sshtrace", 0, 0)!=0; |
| @@ -1949,10 +1949,13 @@ | |
| 1949 | ** showing a list of available repositories if |
| 1950 | ** the URL is "/". |
| 1951 | ** |
| 1952 | ** localauth Grant administrator privileges to connections |
| 1953 | ** from 127.0.0.1 or ::1. |
| 1954 | ** |
| 1955 | ** uppercase_params Allows CGI parameter names to begin with an |
| 1956 | ** uppercase letter. |
| 1957 | ** |
| 1958 | ** skin: LABEL Use the built-in skin called LABEL rather than |
| 1959 | ** the default. If there are no skins called LABEL |
| 1960 | ** then this line is a no-op. |
| 1961 | ** |
| @@ -2308,10 +2311,12 @@ | |
| 2311 | ** --host NAME specify hostname of the server |
| 2312 | ** --https signal a request coming in via https |
| 2313 | ** --in FILE Take input from FILE instead of standard input |
| 2314 | ** --ipaddr ADDR Assume the request comes from the given IP address |
| 2315 | ** --localauth enable automatic login for local connections |
| 2316 | ** --cgiupperok Allows CGI parameter names to begin with an uppercase |
| 2317 | ** letter. |
| 2318 | ** --nocompress do not compress HTTP replies |
| 2319 | ** --nodelay omit backoffice processing if it would delay process exit |
| 2320 | ** --nojail drop root privilege but do not enter the chroot jail |
| 2321 | ** --nossl signal that no SSL connections are available |
| 2322 | ** --notfound URL use URL as "HTTP 404, object not found" page. |
| 2323 |
+9
| --- src/winhttp.c | ||
| +++ src/winhttp.c | ||
| @@ -550,10 +550,13 @@ | ||
| 550 | 550 | blob_appendf(&options, " --files-urlenc %T", zFileGlob); |
| 551 | 551 | } |
| 552 | 552 | if( g.useLocalauth ){ |
| 553 | 553 | blob_appendf(&options, " --localauth"); |
| 554 | 554 | } |
| 555 | + if( g.cgiUpperParamsOk ){ | |
| 556 | + blob_appendf(&options, " --cgiupperok"); | |
| 557 | + } | |
| 555 | 558 | if( g.thTrace ){ |
| 556 | 559 | blob_appendf(&options, " --th-trace"); |
| 557 | 560 | } |
| 558 | 561 | if( flags & HTTP_SERVER_REPOLIST ){ |
| 559 | 562 | blob_appendf(&options, " --repolist"); |
| @@ -984,10 +987,14 @@ | ||
| 984 | 987 | ** |
| 985 | 988 | ** Enables automatic login if the --localauth option is present |
| 986 | 989 | ** and the "localauth" setting is off and the connection is from |
| 987 | 990 | ** localhost. |
| 988 | 991 | ** |
| 992 | +** --cgiupperok | |
| 993 | +** | |
| 994 | +** Allows CGI parameter names to begin with an uppercase letter. | |
| 995 | +** | |
| 989 | 996 | ** --repolist |
| 990 | 997 | ** |
| 991 | 998 | ** If REPOSITORY is directory, URL "/" lists all repositories. |
| 992 | 999 | ** |
| 993 | 1000 | ** --scgi |
| @@ -1044,10 +1051,11 @@ | ||
| 1044 | 1051 | const char *zPassword = find_option("password", "W", 1); |
| 1045 | 1052 | const char *zPort = find_option("port", "P", 1); |
| 1046 | 1053 | const char *zNotFound = find_option("notfound", 0, 1); |
| 1047 | 1054 | const char *zFileGlob = find_option("files", 0, 1); |
| 1048 | 1055 | const char *zLocalAuth = find_option("localauth", 0, 0); |
| 1056 | + const char *zCgiUpperOk = find_option("cgiupperok", 0, 0); | |
| 1049 | 1057 | const char *zRepository = find_repository_option(); |
| 1050 | 1058 | int useSCGI = find_option("scgi", 0, 0)!=0; |
| 1051 | 1059 | int allowRepoList = find_option("repolist",0,0)!=0; |
| 1052 | 1060 | Blob binPath; |
| 1053 | 1061 | |
| @@ -1098,10 +1106,11 @@ | ||
| 1098 | 1106 | if( useSCGI ) blob_appendf(&binPath, " --scgi"); |
| 1099 | 1107 | if( allowRepoList ) blob_appendf(&binPath, " --repolist"); |
| 1100 | 1108 | if( zNotFound ) blob_appendf(&binPath, " --notfound \"%s\"", zNotFound); |
| 1101 | 1109 | if( zFileGlob ) blob_appendf(&binPath, " --files-urlenc %T", zFileGlob); |
| 1102 | 1110 | if( zLocalAuth ) blob_append(&binPath, " --localauth", -1); |
| 1111 | + if( zCgiUpperOk ) blob_append(&binPath, " --cgiupperok", -1); | |
| 1103 | 1112 | blob_appendf(&binPath, " \"%s\"", g.zRepositoryName); |
| 1104 | 1113 | /* Create the service. */ |
| 1105 | 1114 | hScm = OpenSCManagerW(NULL, NULL, SC_MANAGER_ALL_ACCESS); |
| 1106 | 1115 | if( !hScm ) winhttp_fatal("create", zSvcName, win32_get_last_errmsg()); |
| 1107 | 1116 | hSvc = CreateServiceW( |
| 1108 | 1117 |
| --- src/winhttp.c | |
| +++ src/winhttp.c | |
| @@ -550,10 +550,13 @@ | |
| 550 | blob_appendf(&options, " --files-urlenc %T", zFileGlob); |
| 551 | } |
| 552 | if( g.useLocalauth ){ |
| 553 | blob_appendf(&options, " --localauth"); |
| 554 | } |
| 555 | if( g.thTrace ){ |
| 556 | blob_appendf(&options, " --th-trace"); |
| 557 | } |
| 558 | if( flags & HTTP_SERVER_REPOLIST ){ |
| 559 | blob_appendf(&options, " --repolist"); |
| @@ -984,10 +987,14 @@ | |
| 984 | ** |
| 985 | ** Enables automatic login if the --localauth option is present |
| 986 | ** and the "localauth" setting is off and the connection is from |
| 987 | ** localhost. |
| 988 | ** |
| 989 | ** --repolist |
| 990 | ** |
| 991 | ** If REPOSITORY is directory, URL "/" lists all repositories. |
| 992 | ** |
| 993 | ** --scgi |
| @@ -1044,10 +1051,11 @@ | |
| 1044 | const char *zPassword = find_option("password", "W", 1); |
| 1045 | const char *zPort = find_option("port", "P", 1); |
| 1046 | const char *zNotFound = find_option("notfound", 0, 1); |
| 1047 | const char *zFileGlob = find_option("files", 0, 1); |
| 1048 | const char *zLocalAuth = find_option("localauth", 0, 0); |
| 1049 | const char *zRepository = find_repository_option(); |
| 1050 | int useSCGI = find_option("scgi", 0, 0)!=0; |
| 1051 | int allowRepoList = find_option("repolist",0,0)!=0; |
| 1052 | Blob binPath; |
| 1053 | |
| @@ -1098,10 +1106,11 @@ | |
| 1098 | if( useSCGI ) blob_appendf(&binPath, " --scgi"); |
| 1099 | if( allowRepoList ) blob_appendf(&binPath, " --repolist"); |
| 1100 | if( zNotFound ) blob_appendf(&binPath, " --notfound \"%s\"", zNotFound); |
| 1101 | if( zFileGlob ) blob_appendf(&binPath, " --files-urlenc %T", zFileGlob); |
| 1102 | if( zLocalAuth ) blob_append(&binPath, " --localauth", -1); |
| 1103 | blob_appendf(&binPath, " \"%s\"", g.zRepositoryName); |
| 1104 | /* Create the service. */ |
| 1105 | hScm = OpenSCManagerW(NULL, NULL, SC_MANAGER_ALL_ACCESS); |
| 1106 | if( !hScm ) winhttp_fatal("create", zSvcName, win32_get_last_errmsg()); |
| 1107 | hSvc = CreateServiceW( |
| 1108 |
| --- src/winhttp.c | |
| +++ src/winhttp.c | |
| @@ -550,10 +550,13 @@ | |
| 550 | blob_appendf(&options, " --files-urlenc %T", zFileGlob); |
| 551 | } |
| 552 | if( g.useLocalauth ){ |
| 553 | blob_appendf(&options, " --localauth"); |
| 554 | } |
| 555 | if( g.cgiUpperParamsOk ){ |
| 556 | blob_appendf(&options, " --cgiupperok"); |
| 557 | } |
| 558 | if( g.thTrace ){ |
| 559 | blob_appendf(&options, " --th-trace"); |
| 560 | } |
| 561 | if( flags & HTTP_SERVER_REPOLIST ){ |
| 562 | blob_appendf(&options, " --repolist"); |
| @@ -984,10 +987,14 @@ | |
| 987 | ** |
| 988 | ** Enables automatic login if the --localauth option is present |
| 989 | ** and the "localauth" setting is off and the connection is from |
| 990 | ** localhost. |
| 991 | ** |
| 992 | ** --cgiupperok |
| 993 | ** |
| 994 | ** Allows CGI parameter names to begin with an uppercase letter. |
| 995 | ** |
| 996 | ** --repolist |
| 997 | ** |
| 998 | ** If REPOSITORY is directory, URL "/" lists all repositories. |
| 999 | ** |
| 1000 | ** --scgi |
| @@ -1044,10 +1051,11 @@ | |
| 1051 | const char *zPassword = find_option("password", "W", 1); |
| 1052 | const char *zPort = find_option("port", "P", 1); |
| 1053 | const char *zNotFound = find_option("notfound", 0, 1); |
| 1054 | const char *zFileGlob = find_option("files", 0, 1); |
| 1055 | const char *zLocalAuth = find_option("localauth", 0, 0); |
| 1056 | const char *zCgiUpperOk = find_option("cgiupperok", 0, 0); |
| 1057 | const char *zRepository = find_repository_option(); |
| 1058 | int useSCGI = find_option("scgi", 0, 0)!=0; |
| 1059 | int allowRepoList = find_option("repolist",0,0)!=0; |
| 1060 | Blob binPath; |
| 1061 | |
| @@ -1098,10 +1106,11 @@ | |
| 1106 | if( useSCGI ) blob_appendf(&binPath, " --scgi"); |
| 1107 | if( allowRepoList ) blob_appendf(&binPath, " --repolist"); |
| 1108 | if( zNotFound ) blob_appendf(&binPath, " --notfound \"%s\"", zNotFound); |
| 1109 | if( zFileGlob ) blob_appendf(&binPath, " --files-urlenc %T", zFileGlob); |
| 1110 | if( zLocalAuth ) blob_append(&binPath, " --localauth", -1); |
| 1111 | if( zCgiUpperOk ) blob_append(&binPath, " --cgiupperok", -1); |
| 1112 | blob_appendf(&binPath, " \"%s\"", g.zRepositoryName); |
| 1113 | /* Create the service. */ |
| 1114 | hScm = OpenSCManagerW(NULL, NULL, SC_MANAGER_ALL_ACCESS); |
| 1115 | if( !hScm ) winhttp_fatal("create", zSvcName, win32_get_last_errmsg()); |
| 1116 | hSvc = CreateServiceW( |
| 1117 |