1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

[1.7.x] typo: urlaprse -> urlparse

Backport of 8a2f04db91 from master
This commit is contained in:
Collin Anderson 2014-05-14 15:00:57 -04:00 committed by Tim Graham
parent d1860a3529
commit 93d5b0d5b6

View File

@ -275,7 +275,7 @@ def is_safe_url(url, host=None):
# Chrome treats \ completely as /
url = url.replace('\\', '/')
# Chrome considers any URL with more than two slashes to be absolute, but
# urlaprse is not so flexible. Treat any url with three slashes as unsafe.
# urlparse is not so flexible. Treat any url with three slashes as unsafe.
if url.startswith('///'):
return False
url_info = urlparse(url)