Fossil SCM

Fix the previous check-in to list environment variables used by the CGI Server Extensions feature in the correct place.

florian 2022-01-21 11:38 trunk
Commit 6eeb7ec10e32d904aa828f6c4774ab963e10eae85ec256b22c50ca4f102d9fcd
+6 -4
--- www/env-opts.md
+++ www/env-opts.md
@@ -228,14 +228,10 @@
228228
229229
`REQUEST_URI`: If defined, included in error log messages.
230230
231231
`SCRIPT_NAME`: If defined, included in error log messages.
232232
233
-`SERVER_SOFTWARE`: Set to the Fossil version when invoking [CGI-based
234
-extensions](/help?cmd=/ext). Also includes the program name if the
235
-variable was already defined for the current server environment.
236
-
237233
`SSH_CONNECTION`: Informs CGI processing if the remote client is SSH.
238234
239235
`SSL_CERT_FILE`, `SSL_CERT_DIR`: Override the [`ssl-ca-location`]
240236
(/help?cmd=ssl-ca-location) setting.
241237
@@ -315,10 +311,16 @@
315311
See the comment above the implementation of [`json_getenv`][json.c]
316312
for some further discussion.
317313
318314
[json.c]: /artifact/6df1d80dece8968b?ln=277,290
319315
316
+### CGI Server Extensions
317
+
318
+The [CGI Server Extensions](/doc/trunk/www/serverext.wiki) feature passes
319
+parameters to the CGI program using environment variables, as listed in
320
+the [CGI Inputs](/doc/trunk/www/serverext.wiki#cgi-inputs) section.
321
+
320322
### Comment Editor
321323
322324
The editor used to edit a check-in or stash comment is named by the
323325
local or global setting `editor`. If neither is set, then the environment
324326
variables `VISUAL`, and `EDITOR` are checked in that order.
325327
--- www/env-opts.md
+++ www/env-opts.md
@@ -228,14 +228,10 @@
228
229 `REQUEST_URI`: If defined, included in error log messages.
230
231 `SCRIPT_NAME`: If defined, included in error log messages.
232
233 `SERVER_SOFTWARE`: Set to the Fossil version when invoking [CGI-based
234 extensions](/help?cmd=/ext). Also includes the program name if the
235 variable was already defined for the current server environment.
236
237 `SSH_CONNECTION`: Informs CGI processing if the remote client is SSH.
238
239 `SSL_CERT_FILE`, `SSL_CERT_DIR`: Override the [`ssl-ca-location`]
240 (/help?cmd=ssl-ca-location) setting.
241
@@ -315,10 +311,16 @@
315 See the comment above the implementation of [`json_getenv`][json.c]
316 for some further discussion.
317
318 [json.c]: /artifact/6df1d80dece8968b?ln=277,290
319
 
 
 
 
 
 
320 ### Comment Editor
321
322 The editor used to edit a check-in or stash comment is named by the
323 local or global setting `editor`. If neither is set, then the environment
324 variables `VISUAL`, and `EDITOR` are checked in that order.
325
--- www/env-opts.md
+++ www/env-opts.md
@@ -228,14 +228,10 @@
228
229 `REQUEST_URI`: If defined, included in error log messages.
230
231 `SCRIPT_NAME`: If defined, included in error log messages.
232
 
 
 
 
233 `SSH_CONNECTION`: Informs CGI processing if the remote client is SSH.
234
235 `SSL_CERT_FILE`, `SSL_CERT_DIR`: Override the [`ssl-ca-location`]
236 (/help?cmd=ssl-ca-location) setting.
237
@@ -315,10 +311,16 @@
311 See the comment above the implementation of [`json_getenv`][json.c]
312 for some further discussion.
313
314 [json.c]: /artifact/6df1d80dece8968b?ln=277,290
315
316 ### CGI Server Extensions
317
318 The [CGI Server Extensions](/doc/trunk/www/serverext.wiki) feature passes
319 parameters to the CGI program using environment variables, as listed in
320 the [CGI Inputs](/doc/trunk/www/serverext.wiki#cgi-inputs) section.
321
322 ### Comment Editor
323
324 The editor used to edit a check-in or stash comment is named by the
325 local or global setting `editor`. If neither is set, then the environment
326 variables `VISUAL`, and `EDITOR` are checked in that order.
327
--- www/serverext.wiki
+++ www/serverext.wiki
@@ -118,11 +118,11 @@
118118
technologies like Wapp.) The fileup1 script is a demo program that lets
119119
the user upload a file using a form, and then displays that file in the reply.
120120
There is a link on the page that causes the fileup1 script to return a copy
121121
of its own source-code, so you can see how it works.
122122
123
-<h2>3.0 CGI Inputs</h2>
123
+<h2 id="cgi-inputs">3.0 CGI Inputs</h2>
124124
125125
The /ext extension mechanism is an ordinary CGI interface. Parameters
126126
are passed to the CGI program using environment variables. The following
127127
standard CGI environment variables are supported:
128128
@@ -152,10 +152,11 @@
152152
* SCRIPT_FILENAME
153153
* SCRIPT_NAME
154154
* SERVER_NAME
155155
* SERVER_PORT
156156
* SERVER_PROTOCOL
157
+ * SERVER_SOFTWARE
157158
158159
Do a web search for
159160
"[https://duckduckgo.com/?q=cgi+environment_variables|cgi environment variables]"
160161
to find more detail about what each of the above variables mean and how
161162
they are used.
162163
--- www/serverext.wiki
+++ www/serverext.wiki
@@ -118,11 +118,11 @@
118 technologies like Wapp.) The fileup1 script is a demo program that lets
119 the user upload a file using a form, and then displays that file in the reply.
120 There is a link on the page that causes the fileup1 script to return a copy
121 of its own source-code, so you can see how it works.
122
123 <h2>3.0 CGI Inputs</h2>
124
125 The /ext extension mechanism is an ordinary CGI interface. Parameters
126 are passed to the CGI program using environment variables. The following
127 standard CGI environment variables are supported:
128
@@ -152,10 +152,11 @@
152 * SCRIPT_FILENAME
153 * SCRIPT_NAME
154 * SERVER_NAME
155 * SERVER_PORT
156 * SERVER_PROTOCOL
 
157
158 Do a web search for
159 "[https://duckduckgo.com/?q=cgi+environment_variables|cgi environment variables]"
160 to find more detail about what each of the above variables mean and how
161 they are used.
162
--- www/serverext.wiki
+++ www/serverext.wiki
@@ -118,11 +118,11 @@
118 technologies like Wapp.) The fileup1 script is a demo program that lets
119 the user upload a file using a form, and then displays that file in the reply.
120 There is a link on the page that causes the fileup1 script to return a copy
121 of its own source-code, so you can see how it works.
122
123 <h2 id="cgi-inputs">3.0 CGI Inputs</h2>
124
125 The /ext extension mechanism is an ordinary CGI interface. Parameters
126 are passed to the CGI program using environment variables. The following
127 standard CGI environment variables are supported:
128
@@ -152,10 +152,11 @@
152 * SCRIPT_FILENAME
153 * SCRIPT_NAME
154 * SERVER_NAME
155 * SERVER_PORT
156 * SERVER_PROTOCOL
157 * SERVER_SOFTWARE
158
159 Do a web search for
160 "[https://duckduckgo.com/?q=cgi+environment_variables|cgi environment variables]"
161 to find more detail about what each of the above variables mean and how
162 they are used.
163

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button