summaryrefslogtreecommitdiff
path: root/fbin
diff options
context:
space:
mode:
Diffstat (limited to 'fbin')
-rwxr-xr-xfbin/fbin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fbin/fbin.py b/fbin/fbin.py
index d3065e2..983c1aa 100755
--- a/fbin/fbin.py
+++ b/fbin/fbin.py
@@ -187,7 +187,7 @@ def uploaded(hash):
@app.route('/file/<hash:hash>/<path:filename>', endpoint = 'file')
def _file(hash, ext=None, filename=None):
f = get_file(hash)
- if not f or f.blocked_reason:
+ if not f or (f.blocked_reason and f.blocked_reason['positives'] >= current_app.config['VIRUSTOTAL_MINIMUM_POSITIVES']):
abort(404)
path = storage.get_file(f)
if isinstance(path, Response):