Skip to content

Commit 9bc96c0

Browse files
[doc] Fix typos in cgi.rst (GH-24766) (GH-26131)
(cherry picked from commit 19d839a) Co-authored-by: Géry Ogam <[email protected]>
1 parent 64a31c5 commit 9bc96c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/cgi.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ algorithms implemented in this module in other circumstances.
316316
.. function:: test()
317317

318318
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.
320320

321321

322322
.. function:: print_environ()
@@ -346,8 +346,8 @@ Caring about security
346346

347347
.. index:: pair: CGI; security
348348

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
351351
functionality), make very sure you don't pass arbitrary strings received from
352352
the client to the shell. This is a well-known security hole whereby clever
353353
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
424424
you wonder whether you have understood the installation procedure correctly, try
425425
installing a copy of this module file (:file:`cgi.py`) as a CGI script. When
426426
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
428428
installed in the standard :file:`cgi-bin` directory, it should be possible to
429429
send it a request by entering a URL into your browser of the form:
430430

0 commit comments

Comments
 (0)