summaryrefslogtreecommitdiff
path: root/django/utils/html.py
diff options
context:
space:
mode:
authorMarkus Holtermann <info@markusholtermann.eu>2014-10-31 12:04:01 +0100
committerTim Graham <timograham@gmail.com>2014-10-31 08:06:40 -0400
commited2f96819c9ad6e21e4d397b6418915f5caf522f (patch)
tree8fbca93a0edcdc0ac26258ad9bd4a87d0ad9c025 /django/utils/html.py
parent98da408964b229ee0b35bb8c4500820e3606aeab (diff)
Fixed #23715 -- Prevented urlize from treating a trailing ! as part of an URL
Thanks to 57even for the report.
Diffstat (limited to 'django/utils/html.py')
-rw-r--r--django/utils/html.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/html.py b/django/utils/html.py
index 115ccbbaaa..2dc16d5d71 100644
--- a/django/utils/html.py
+++ b/django/utils/html.py
@@ -19,7 +19,7 @@ from .html_parser import HTMLParser, HTMLParseError
# Configuration for urlize() function.
-TRAILING_PUNCTUATION = ['.', ',', ':', ';', '.)', '"', '\'']
+TRAILING_PUNCTUATION = ['.', ',', ':', ';', '.)', '"', '\'', '!']
WRAPPING_PUNCTUATION = [('(', ')'), ('<', '>'), ('[', ']'), ('&lt;', '&gt;'), ('"', '"'), ('\'', '\'')]
# List of possible strings used for bullets in bulleted lists.