@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.11\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2024-02-02 18:15 +0000\n "
14+ "POT-Creation-Date : 2024-03-15 16:48 +0000\n "
1515"PO-Revision-Date : 2023-05-24 02:16+0000\n "
1616"
Last-Translator :
Rafael Fontenelle <[email protected] >, 2024\n "
1717"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -717,18 +717,27 @@ msgid ""
717717" the ``--cgi`` option::"
718718msgstr "通过在命令行传入 ``--cgi`` 参数,可以启用 :class:`CGIHTTPRequestHandler` :"
719719
720- #: ../../library/http.server.rst:508
720+ #: ../../library/http.server.rst:507
721+ msgid ""
722+ ":class:`CGIHTTPRequestHandler` and the ``--cgi`` command line option are not"
723+ " intended for use by untrusted clients and may be vulnerable to "
724+ "exploitation. Always use within a secure environment."
725+ msgstr ""
726+ ":class:`CGIHTTPRequestHandler` 和 ``--cgi`` 命令行选项不可供不受信任的客户端使用且容易受到恶意利用。 "
727+ "应当始终在安全的环境中使用。"
728+
729+ #: ../../library/http.server.rst:514
721730msgid "Security Considerations"
722731msgstr "安全考量"
723732
724- #: ../../library/http.server.rst:512
733+ #: ../../library/http.server.rst:518
725734msgid ""
726735":class:`SimpleHTTPRequestHandler` will follow symbolic links when handling "
727736"requests, this makes it possible for files outside of the specified "
728737"directory to be served."
729738msgstr "当处理请求时,:class:`SimpleHTTPRequestHandler` 会解析符号链接,这有可能使得指定文件夹以外的文件被暴露。"
730739
731- #: ../../library/http.server.rst:516
740+ #: ../../library/http.server.rst:522
732741msgid ""
733742"Earlier versions of Python did not scrub control characters from the log "
734743"messages emitted to stderr from ``python -m http.server`` or the default "
@@ -740,7 +749,7 @@ msgstr ""
740749":class:`BaseHTTPRequestHandler` ``.log_message`` 实现发送到 stderr 的日志消息中的控制字符。 "
741750"这可以允许连接到你的服务器的远程客户端向你的终端发送邪恶的控制代码。"
742751
743- #: ../../library/http.server.rst:522
752+ #: ../../library/http.server.rst:528
744753msgid "Control characters are scrubbed in stderr logs."
745754msgstr "控制字符会在 stderr 日志中被擦除。"
746755
@@ -768,10 +777,10 @@ msgstr "网址"
768777msgid "httpd"
769778msgstr "httpd"
770779
771- #: ../../library/http.server.rst:510
780+ #: ../../library/http.server.rst:516
772781msgid "http.server"
773782msgstr "http.server"
774783
775- #: ../../library/http.server.rst:510
784+ #: ../../library/http.server.rst:516
776785msgid "security"
777786msgstr "安全"
0 commit comments