From ba87b8ba326f12ca9385e56d2411203850f46eb9 Mon Sep 17 00:00:00 2001 From: clime Date: Mon, 24 Jul 2017 13:12:58 +0200 Subject: [PATCH] disable md5 by default --- scripts/httpd/upload.cgi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/httpd/upload.cgi b/scripts/httpd/upload.cgi index 3c656c4..1de12a3 100644 --- a/scripts/httpd/upload.cgi +++ b/scripts/httpd/upload.cgi @@ -194,8 +194,7 @@ def main(): print 'Missing' sys.exit(0) - # TODO: At a later date, the default should be moved to True - elif hash_type == "md5" and config['dist-git'].getboolean('nomd5', fallback=False): + elif hash_type == "md5" and config['dist-git'].getboolean('nomd5', fallback=True): send_error('Uploads with md5 are no longer allowed.', status='406 Not Acceptable')