1
0
Fork 0
forked from mia/0x0

do not shorten our host URLs

Turns out ShareX users are fucking retarded.
This commit is contained in:
Martin Herkt 2017-01-01 20:26:35 +01:00
parent 0c5d8690cc
commit e974834422
No known key found for this signature in database
GPG key ID: C24B9CD04DC6AE7F

View file

@ -107,7 +107,7 @@ def shorten(url):
if len(url) > app.config["MAX_URL_LENGTH"]:
abort(414)
if not url_valid(url):
if not url_valid(url) or is_fhost_url(url):
abort(400)
existing = URL.query.filter_by(url=url).first()