Commit 93d5b0d5 authored by Collin Anderson's avatar Collin Anderson Committed by Tim Graham
Browse files

[1.7.x] typo: urlaprse -> urlparse

Backport of 8a2f04db from master
parent d1860a35
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)