mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
VDestination: Fix bug where https URLs weren't validated.
This commit is contained in:
@@ -1798,7 +1798,7 @@ class VDestination(Validator):
|
||||
dest = self.default or "/"
|
||||
|
||||
ld = dest.lower()
|
||||
if ld.startswith(('/', 'http://', 'http://')):
|
||||
if ld.startswith(('/', 'http://', 'https://')):
|
||||
u = UrlParser(dest)
|
||||
|
||||
if u.is_reddit_url(c.site):
|
||||
|
||||
Reference in New Issue
Block a user