VDestination: Fix bug where https URLs weren't validated.

This commit is contained in:
Ricky Ramirez
2013-05-15 11:22:45 -07:00
parent b70e460f4d
commit 38535c08fc

View File

@@ -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):