mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
GET_submit: sanitize_url before building listing.
This commit is contained in:
committed by
Chad Birch
parent
5c294c3a4d
commit
8b982b8644
@@ -990,6 +990,7 @@ class FrontController(RedditController, OAuth2ResourceController):
|
||||
resubmit = request.GET.get('resubmit')
|
||||
if url and not resubmit:
|
||||
# check to see if the url has already been submitted
|
||||
url = sanitize_url(url)
|
||||
listing = hot_links_by_url_listing(url, sr=c.site)
|
||||
links = listing.things
|
||||
|
||||
|
||||
Reference in New Issue
Block a user