Do not account for urlencoded redirects
This commit is contained in:
parent
a44acf1846
commit
6be99bc576
|
@ -98,9 +98,7 @@ class NextUrlSanitizer:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def __is_absolute_url(self, url: str) -> bool:
|
def __is_absolute_url(self, url: str) -> bool:
|
||||||
return url.startswith(
|
return url.startswith(("http://", "https://"))
|
||||||
("http://", "https://", "http%3A%2F%2F", "https%3A%2F%2F")
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def sanitize_next_url(url: Optional[str]) -> Optional[str]:
|
def sanitize_next_url(url: Optional[str]) -> Optional[str]:
|
||||||
|
|
Loading…
Reference in New Issue