FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-144133: Add warning about untrusted input to the `idna` codec by StanFromIreland · Pull Request #155475 · python/cpython · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .rst  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
14 changes: 14 additions & 0 deletions Doc/library/codecs.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -1395,6 +1395,15 @@ encodings.
| | | :mod:`encodings.idna`. |
| | | Only ``errors='strict'`` |
| | | is supported. |
| | | |
| | | .. warning:: |
| | | |
| | | This codec builds on |
Comment thread
sethmlarson marked this conversation as resolved.
| | | ``punycode``, whose |
| | | algorithms scale |
| | | poorly, so limit the |
| | | length of untrusted |
| | | input. |
+--------------------+---------+---------------------------+
| mbcs | ansi, | Windows only: Encode the |
| | dbcs | operand according to the |
Expand Down Expand Up @@ -1646,6 +1655,11 @@ Applications) and :rfc:`3492` (Nameprep: A Stringprep Profile for
Internationalized Domain Names (IDN)). It builds upon the ``punycode`` encoding
and :mod:`stringprep`.

.. warning::

This module builds on ``punycode``, whose algorithms scale poorly, so limit
the length of untrusted input.

If you need the IDNA 2008 standard from :rfc:`5891` and :rfc:`5895`, use the
third-party :pypi:`idna` module.

Expand Down
Loading

Back | FazBrowse Home | New Git URL