diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-07-26 22:11:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-26 22:11:55 (GMT) |
commit | 11749e2dc20ad6a76e9a39e948853e89b2b4bbed (patch) | |
tree | 7b370ec4036b21ae99ca0b46c1d82ac122f9d43f /Doc/library/cgi.rst | |
parent | 6c7ec7282b68dcd0f3af0f1ccc6345da4bc06931 (diff) | |
download | cpython-11749e2dc20ad6a76e9a39e948853e89b2b4bbed.zip cpython-11749e2dc20ad6a76e9a39e948853e89b2b4bbed.tar.gz cpython-11749e2dc20ad6a76e9a39e948853e89b2b4bbed.tar.bz2 |
bpo-44740: Lowercase "internet" and "web" where appropriate. (#27378)
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Doc/library/cgi.rst')
-rw-r--r-- | Doc/library/cgi.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/cgi.rst b/Doc/library/cgi.rst index d3bd20d..1494fa7 100644 --- a/Doc/library/cgi.rst +++ b/Doc/library/cgi.rst @@ -73,7 +73,7 @@ When you write a new script, consider adding these lines:: cgitb.enable() This activates a special exception handler that will display detailed reports in -the Web browser if any errors occur. If you'd rather not show the guts of your +the web browser if any errors occur. If you'd rather not show the guts of your program to users of your script, you can have the reports saved to files instead, with code like this:: @@ -350,7 +350,7 @@ 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 +hackers anywhere on the web can exploit a gullible CGI script to invoke arbitrary shell commands. Even parts of the URL or field names cannot be trusted, since the request doesn't have to come from your form! @@ -457,7 +457,7 @@ likely the traceback will end up in one of the HTTP server's log files, or be discarded altogether. Fortunately, once you have managed to get your script to execute *some* code, -you can easily send tracebacks to the Web browser using the :mod:`cgitb` module. +you can easily send tracebacks to the web browser using the :mod:`cgitb` module. If you haven't done so already, just add the lines:: import cgitb |