aboutsummaryrefslogtreecommitdiff
path: root/fhost.py
diff options
context:
space:
mode:
authorMartin Herkt <lachs0r@srsfckn.biz>2017-01-01 20:26:35 +0100
committerMartin Herkt <lachs0r@srsfckn.biz>2017-01-01 20:26:35 +0100
commite9748344227d197f5d80d725bf949a91418f1418 (patch)
tree9e07313123e4ffe94aceb3f5ab9c158c0f861fdf /fhost.py
parentuse function to format host URL (diff)
downloadhex-zero-e9748344227d197f5d80d725bf949a91418f1418.tar.gz
hex-zero-e9748344227d197f5d80d725bf949a91418f1418.tar.bz2
hex-zero-e9748344227d197f5d80d725bf949a91418f1418.zip
do not shorten our host URLs
Turns out ShareX users are fucking retarded.
Diffstat (limited to 'fhost.py')
-rwxr-xr-xfhost.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fhost.py b/fhost.py
index c19d503..48d2d9d 100755
--- a/fhost.py
+++ b/fhost.py
@@ -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()
bgstack15