mirror of https://github.com/django/django.git
Merge pull request #2653 from collinanderson/patch-1
typo: urlaprse -> urlparse
This commit is contained in:
commit
b90c112cb1
|
@ -275,7 +275,7 @@ def is_safe_url(url, host=None):
|
||||||
# Chrome treats \ completely as /
|
# Chrome treats \ completely as /
|
||||||
url = url.replace('\\', '/')
|
url = url.replace('\\', '/')
|
||||||
# Chrome considers any URL with more than two slashes to be absolute, but
|
# 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('///'):
|
if url.startswith('///'):
|
||||||
return False
|
return False
|
||||||
url_info = urlparse(url)
|
url_info = urlparse(url)
|
||||||
|
|
Loading…
Reference in New Issue