From 0ed6455a65d5f6dd1f53c0b861957cbcc05d216b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 19 Mar 2024 16:05:38 +0100 Subject: [PATCH] misc: extend default list of forbidden file types (#88352) --- wcs/qommon/form.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/wcs/qommon/form.py b/wcs/qommon/form.py index 1389aaa92..d2442ad67 100644 --- a/wcs/qommon/form.py +++ b/wcs/qommon/form.py @@ -1080,6 +1080,15 @@ class FileWithPreviewWidget(CompositeWidget): '.pif', '.php', '.js', + '.pht', + '.phtml', + '.shtml', + '.asa', + '.asax', + '.cer', + '.swf', + '.xap', + '.ps1', 'application/x-ms-dos-executable', 'text/x-php', ]