Do not account for urlencoded redirects

This commit is contained in:
Carlos Quintana 2022-02-16 16:02:01 +01:00
parent a44acf1846
commit 6be99bc576
No known key found for this signature in database
GPG Key ID: 9A3A2DE1C3E2A4B1
1 changed files with 1 additions and 3 deletions

View File

@ -98,9 +98,7 @@ class NextUrlSanitizer:
return None
def __is_absolute_url(self, url: str) -> bool:
return url.startswith(
("http://", "https://", "http%3A%2F%2F", "https%3A%2F%2F")
)
return url.startswith(("http://", "https://"))
def sanitize_next_url(url: Optional[str]) -> Optional[str]: