From d1f1e829c3278daea337252fcc695830cd26e838 Mon Sep 17 00:00:00 2001 From: Derek Schmidt <skehmatics@gmail.com> Date: Thu, 14 Jun 2018 14:08:22 -0700 Subject: [PATCH] Actually set the 'i.redd.it' hack Whoops almost forgot the whole point of the exploit --- memepolice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memepolice.py b/memepolice.py index 5445e00..8747643 100644 --- a/memepolice.py +++ b/memepolice.py @@ -39,7 +39,7 @@ def meirl_upload(): watermark.close() meme.close() - url = url_for('meirl_show_reddit', file=filename[:-4]) + url = 'i.redd.it.' + request.host + url_for('meirl_show_reddit', file=filename[:-4]) print(request.args) if request.args.get('noredirect') is not None: return url