summaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-02-21 20:30:52 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2023-02-21 20:30:52 +0100
commit1e21a8bc7d39547e8e5cb8f9bd7322d7a6c22d86 (patch)
tree16bf83a61ce8dacd31a51fdbce9d8ef99cf97928 /www
parentescaping html in filenames (diff)
downloadtravnik-1e21a8bc7d39547e8e5cb8f9bd7322d7a6c22d86.tar
travnik-1e21a8bc7d39547e8e5cb8f9bd7322d7a6c22d86.tar.gz
travnik-1e21a8bc7d39547e8e5cb8f9bd7322d7a6c22d86.tar.bz2
travnik-1e21a8bc7d39547e8e5cb8f9bd7322d7a6c22d86.tar.lz
travnik-1e21a8bc7d39547e8e5cb8f9bd7322d7a6c22d86.tar.xz
travnik-1e21a8bc7d39547e8e5cb8f9bd7322d7a6c22d86.tar.zst
travnik-1e21a8bc7d39547e8e5cb8f9bd7322d7a6c22d86.zip
Diffstat (limited to 'www')
-rwxr-xr-xwww/app.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/www/app.py b/www/app.py
index 1bb512a..de60c37 100755
--- a/www/app.py
+++ b/www/app.py
@@ -27,6 +27,8 @@ def index():
for hash, torrent in torrents.items():
if not request.args.get("regex"):
break
+ if len(result) >= 100:
+ break
if torrent.matches(request.args.get("regex")):
try:
decodedname = torrent.dict.get(b'info').get(b'name').decode()