@@ -316,7 +316,7 @@ algorithms implemented in this module in other circumstances.
316
316
.. function :: test()
317
317
318
318
Robust test CGI script, usable as main program. Writes minimal HTTP headers and
319
- formats all information provided to the script in HTML form .
319
+ formats all information provided to the script in HTML format .
320
320
321
321
322
322
.. function :: print_environ()
@@ -346,8 +346,8 @@ Caring about security
346
346
347
347
.. index :: pair: CGI; security
348
348
349
- There's one important rule: if you invoke an external program (via the
350
- :func: `os.system ` or :func: `os.popen ` functions. or others with similar
349
+ There's one important rule: if you invoke an external program (via
350
+ :func: `os.system `, :func: `os.popen ` or other functions with similar
351
351
functionality), make very sure you don't pass arbitrary strings received from
352
352
the client to the shell. This is a well-known security hole whereby clever
353
353
hackers anywhere on the Web can exploit a gullible CGI script to invoke
@@ -424,7 +424,7 @@ above on installing your CGI script carefully can save you a lot of time. If
424
424
you wonder whether you have understood the installation procedure correctly, try
425
425
installing a copy of this module file (:file: `cgi.py `) as a CGI script. When
426
426
invoked as a script, the file will dump its environment and the contents of the
427
- form in HTML form . Give it the right mode etc, and send it a request. If it's
427
+ form in HTML format . Give it the right mode etc. , and send it a request. If it's
428
428
installed in the standard :file: `cgi-bin ` directory, it should be possible to
429
429
send it a request by entering a URL into your browser of the form:
430
430
0 commit comments