diff options
author | Martin Herkt <lachs0r@srsfckn.biz> | 2017-01-01 21:03:38 +0100 |
---|---|---|
committer | Martin Herkt <lachs0r@srsfckn.biz> | 2017-01-01 21:20:40 +0100 |
commit | 714de58180072a5563ae1f3d96b8697892f20506 (patch) | |
tree | 2b7bfc469b57db64f3e55bcf6701ac2747bbfeac | |
parent | add BEACON dump with start index for urlte.am (diff) | |
download | hex-zero-714de58180072a5563ae1f3d96b8697892f20506.tar.gz hex-zero-714de58180072a5563ae1f3d96b8697892f20506.tar.bz2 hex-zero-714de58180072a5563ae1f3d96b8697892f20506.zip |
add more URL validation
Turns out ShareX users and shell script authors are fucking retarded.
-rwxr-xr-x | fhost.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -107,7 +107,7 @@ def shorten(url): if len(url) > app.config["MAX_URL_LENGTH"]: abort(414) - if not url_valid(url) or is_fhost_url(url): + if not url_valid(url) or is_fhost_url(url) or "\n" in url: abort(400) existing = URL.query.filter_by(url=url).first() |