[Python-checkins] [3.10] [doc] Fix typos in cgi.rst (GH-24766) (GH-26132)

iritkatriel webhook-mailer at python.org
Fri May 14 13:12:37 EDT 2021


https://github.com/python/cpython/commit/23643799acb23f0999a43c8d351522016b59c7cb
commit: 23643799acb23f0999a43c8d351522016b59c7cb
branch: 3.10
author: Irit Katriel <iritkatriel at yahoo.com>
committer: iritkatriel <iritkatriel at yahoo.com>
date: 2021-05-14T18:12:33+01:00
summary:

[3.10] [doc] Fix typos in cgi.rst (GH-24766) (GH-26132)

(cherry picked from commit 19d839ae20db9c6f740646e99df7f4601cb9f4dc)

Co-authored-by: Géry Ogam <gery.ogam at gmail.com>

files:
M Doc/library/cgi.rst

diff --git a/Doc/library/cgi.rst b/Doc/library/cgi.rst
index 05d9cdf424073..d3bd20df69ae3 100644
--- a/Doc/library/cgi.rst
+++ b/Doc/library/cgi.rst
@@ -316,7 +316,7 @@ algorithms implemented in this module in other circumstances.
 .. function:: test()
 
    Robust test CGI script, usable as main program. Writes minimal HTTP headers and
-   formats all information provided to the script in HTML form.
+   formats all information provided to the script in HTML format.
 
 
 .. function:: print_environ()
@@ -346,8 +346,8 @@ Caring about security
 
 .. index:: pair: CGI; security
 
-There's one important rule: if you invoke an external program (via the
-:func:`os.system` or :func:`os.popen` functions. or others with similar
+There's one important rule: if you invoke an external program (via
+:func:`os.system`, :func:`os.popen` or other functions with similar
 functionality), make very sure you don't pass arbitrary strings received from
 the client to the shell.  This is a well-known security hole whereby clever
 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
 you wonder whether you have understood the installation procedure correctly, try
 installing a copy of this module file (:file:`cgi.py`) as a CGI script.  When
 invoked as a script, the file will dump its environment and the contents of the
-form in HTML form. Give it the right mode etc, and send it a request.  If it's
+form in HTML format. Give it the right mode etc., and send it a request.  If it's
 installed in the standard :file:`cgi-bin` directory, it should be possible to
 send it a request by entering a URL into your browser of the form:
 



More information about the Python-checkins mailing list