Skip to content

Commit e49fabe

Browse files
committed
New configuration directive.
Changelog excerpt: - Added a configuration directive for returning a 415 status code for when an upload is blocked due to its filetype being blacklisted.
1 parent d550dc2 commit e49fabe

28 files changed

+77
-35
lines changed

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@ __*Why "v3.0.0" instead of "v1.0.0?"*__ Prior to phpMussel v3, the "phpMussel Co
2727
[2021.05.01; Bug-fix; Maikuolan]: Log truncation not being calculated properly; Fixed.
2828

2929
[2021.05.28; Maikuolan]: Performed some minor refactoring.
30+
31+
### v3.2.0
32+
33+
[2021.06.10; Maikuolan]: Added a configuration directive for returning a 415 status code for when an upload is blocked due to its filetype being blacklisted.

assets/config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# License: GNU/GPLv2
88
# @see LICENSE.txt
99
#
10-
# This file: Configuration defaults file (last modified: 2021.04.27).
10+
# This file: Configuration defaults file (last modified: 2021.06.09).
1111
##/
1212

1313
web:
@@ -17,6 +17,9 @@ web:
1717
forbid_on_block:
1818
type: "bool"
1919
default: true
20+
unsupported_media_type_header:
21+
type: "bool"
22+
default: false
2023
max_uploads:
2124
type: "int"
2225
default: 10

l10n/ar.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# License: GNU/GPLv2
88
# @see LICENSE.txt
99
#
10-
# This file: Arabic language data (last modified: 2020.07.13).
10+
# This file: Arabic language data (last modified: 2021.06.10).
1111
##/
1212

1313
PrivacyPolicy: "سياسة الخصوصية"
@@ -17,6 +17,7 @@ config_web_ignore_upload_errors: "يجب أن يكون هذا التوجيه ع
1717
config_web_magnification: "تكبير الخط. افتراضي = 1."
1818
config_web_max_uploads: "العدد الأقصى المسموح به من ملفات لمسح أثناء تحميل الملفات مسح قبل إحباط عملية الفحص وإعلام المستخدم أنهم تحميل أكثر من اللازم في وقت واحد! يوفر الحماية ضد هجوم النظري حيث يحاول أحد المهاجمين دوس النظام الخاص بك أو CMS من الحمولة الزائدة phpMussel إلى إبطاء عملية PHP لوقف طحن. الموصى بها: 10. أنت قد ترغب في رفع أو خفض هذا الرقم اعتمادا على سرعة الجهاز. لاحظ أن هذا الرقم لا يأخذ في الحسبان أو تتضمن محتويات المحفوظات."
1919
config_web_theme: "الجمالية المراد استخدامها لصفحة "رفض تحميل"."
20+
config_web_unsupported_media_type_header: "هل يجب على phpMussel إرسال 415 رأسًا عندما يتم حظر التحميلات بسبب أنواع الملفات المدرجة في القائمة السوداء؟ عندما يكون هذا الإعداد صحيحًا، يحل هذا الإعداد محل <code dir="ltr">forbid_on_block</code>. زائفة/False = لا [الافتراضي]؛ صحيح/True = نعم."
2021
config_web_uploads_log: "مكان تسجيل جميع التحميلات المحظورة. تحديد اسم الملف، أو اتركه فارغا لتعطيل."
2122
denied: "رفض تحميل!"
2223
denied_reason: "تم حجب التحميل للأسباب الواردة أدناه:"

l10n/bn.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# License: GNU/GPLv2
88
# @see LICENSE.txt
99
#
10-
# This file: Bangla language data (last modified: 2020.07.13).
10+
# This file: Bangla language data (last modified: 2021.06.10).
1111
##/
1212

1313
PrivacyPolicy: "গোপনীয়তা নীতি"
@@ -17,6 +17,7 @@ config_web_ignore_upload_errors: "সাধারণত এটি অক্ষ
1717
config_web_magnification: "ফন্ট বৃহত্তরীকরণ। ডিফল্ট = "1"।"
1818
config_web_max_uploads: "স্ক্যান বাতিলের আগে স্ক্যান করার জন্য সর্বাধিক অনুমোদিত ফাইল আপলোড (সীমা অতিক্রমকারী মানে ব্যবহারকারীদের একযোগে তারা খুব বেশী আপলোড করা হয় যে অবগত করা হবে)! একটি তাত্ত্বিক DDoS আক্রমণের বিরুদ্ধে সুরক্ষা প্রদান করে একই সময়ে খুব বেশি আপলোড করার কারণে। প্রস্তাবিত: "10"। আপনি আপনার হার্ডওয়্যারের গতির উপর নির্ভর করে এই সংখ্যা বাড়াতে বা কম করতে পারেন। লক্ষ্য করুন যে এই সংখ্যাটি আর্কাইভের বিষয়বস্তুগুলির জন্য নয়।"
1919
config_web_theme: ""আপলোড অস্বীকার" পৃষ্ঠার জন্য ব্যবহার করার নান্দনিক।"
20+
config_web_unsupported_media_type_header: "কালো তালিকাভুক্ত ফাইল টাইপের কারণে আপলোডগুলি অবরুদ্ধ করা হলে phpMusselকে 415 শিরোলেখ প্রেরণ করা উচিত? সত্য হয়ে গেলে, এই সেটিংটি <code>forbid_on_block</code>টিকে ছাড়িয়ে যায়। False = না [ডিফল্ট]; True = হাঁ।"
2021
config_web_uploads_log: "সমস্ত অবরুদ্ধ আপলোডগুলি লগ করা উচিত কোথায়। ফাইলের নাম উল্লেখ করুন, অথবা নিষ্ক্রিয় করতে ফাঁকা রাখুন।"
2122
denied: "আপলোড অস্বীকার!"
2223
denied_reason: "আপনার আপলোড নীচে তালিকাভুক্ত কারণগুলির জন্য অবরুদ্ধ করা হয়েছে:"

l10n/de.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# License: GNU/GPLv2
88
# @see LICENSE.txt
99
#
10-
# This file: German language data (last modified: 2020.07.13).
10+
# This file: German language data (last modified: 2021.06.10).
1111
##/
1212

1313
PrivacyPolicy: "Datenschutz-Bestimmungen"
@@ -17,6 +17,7 @@ config_web_ignore_upload_errors: "Diese Direktive sollte generell AUS geschaltet
1717
config_web_magnification: "Schriftvergrößerung. Standardeinstellung = 1."
1818
config_web_max_uploads: "Maximale erlaubte Anzahl zu überprüfender Dateien während eines Dateiuploads bevor der Scan abgebrochen und der Nutzer darüber informiert wird, dass er zu viele Dateien auf einmal hochgeladen hat. Bietet einen Schutz gegen den theoretischen Angriff eines DDoS auf Ihr System oder CMS, indem der Angreifer phpMussel überlastet und den PHP-Prozess zum Stillstand bringt. Empfohlen: 10. Sie können den Wert abhängig von Ihrer Hardware erhöhen oder senken. Beachten Sie, dass dieser Wert nicht den Inhalt von Archiven berücksichtigt."
1919
config_web_theme: "Die Ästhetik für die Seite "Upload verweigert"."
20+
config_web_unsupported_media_type_header: "Sollte phpMussel 415 Header senden, wenn Uploads aufgrund von Dateitypen auf der schwarzen Liste blockiert werden? Wenn true, ersetzt diese Einstellung <code>forbid_on_block</code>. False = Nein [Standardeinstellung]; True = Ja."
2021
config_web_uploads_log: "Wo sollen alle blockierten Uploads protokolliert werden. Geben Sie einen Dateinamen an oder lassen Sie die Option zum Deaktivieren leer."
2122
denied: "Upload verweigert!"
2223
denied_reason: "Der Upload wurde aus den unten aufgeführten Gründen blockiert:"

l10n/en.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# License: GNU/GPLv2
88
# @see LICENSE.txt
99
#
10-
# This file: English language data (last modified: 2020.07.13).
10+
# This file: English language data (last modified: 2021.06.10).
1111
##/
1212

1313
PrivacyPolicy: "Privacy Policy"
@@ -17,6 +17,7 @@ config_web_ignore_upload_errors: "This directive should generally be disabled un
1717
config_web_magnification: "Font magnification. Default = 1."
1818
config_web_max_uploads: "Maximum number of files that phpMussel is allowed to scan when scanning uploads before aborting the scan and informing the user they are uploading too much at once! Provides protection against a theoretical attack whereby an attacker attempts to DDoS your system or CMS by overloading phpMussel to slow down the PHP process to a grinding halt. Recommended: 10. You may wish to raise or lower this number depending on the speed of your hardware. Note that this number doesn't account for or include the contents of archives."
1919
config_web_theme: "The aesthetic to use for the "Upload Denied" page."
20+
config_web_unsupported_media_type_header: "Should phpMussel send 415 headers when uploads are blocked due to blacklisted filetypes? When true, this setting supersedes <code>forbid_on_block</code>. False = No [Default]; True = Yes."
2021
config_web_uploads_log: "Where all blocked uploads should be logged. Specify a filename, or leave blank to disable."
2122
denied: "Upload Denied!"
2223
denied_reason: "Your upload was blocked for the reasons listed below:"

l10n/es.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# License: GNU/GPLv2
88
# @see LICENSE.txt
99
#
10-
# This file: Spanish language data (last modified: 2020.07.13).
10+
# This file: Spanish language data (last modified: 2021.06.10).
1111
##/
1212

1313
PrivacyPolicy: "Política de Privacidad"
@@ -17,6 +17,7 @@ config_web_ignore_upload_errors: "Esta directiva, en general, debe ser desactiva
1717
config_web_magnification: "Ampliación de fuente. Predefinido = 1."
1818
config_web_max_uploads: "Máximo permitido número de archivos para escanear durante archivo subido escaneo antes de abortando la escaneo e informando al usuario están subir demasiado simultáneamente! Proporciona protección contra un teórico ataque por lo cual un atacante intenta DDoS su sistema o CMS por sobrecargando phpMussel para ralentizar el proceso de PHP a niveles inoperables. Recomendado: 10. Es posible que desee aumentar o reducir este número dependiendo de la velocidad de su hardware. Notar que este número no tiene en cuenta o incluir el contenidos de compactados archivos."
1919
config_web_theme: "La estética a utilizar para la página "Subida Denegada"."
20+
config_web_unsupported_media_type_header: "¿Debería phpMussel enviar 415 header cuando las cargas están bloqueadas debido a tipos de archivos en la lista negra? Cuando es true, esta configuración reemplaza a <code>forbid_on_block</code>. False = No [Predefinido]; True = Sí."
2021
config_web_uploads_log: "Donde se deben registrar todas las subidas bloqueadas. Especifique un archivo nombre, o dejar en blanco para desactivar."
2122
denied: "¡Subida Denegada!"
2223
denied_reason: "La subida de archivo fue bloqueada por las razones que se indican a continuación:"

l10n/fr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# License: GNU/GPLv2
88
# @see LICENSE.txt
99
#
10-
# This file: French language data (last modified: 2020.07.13).
10+
# This file: French language data (last modified: 2021.06.10).
1111
##/
1212

1313
PrivacyPolicy: "Politique de Confidentialité"
@@ -17,6 +17,7 @@ config_web_ignore_upload_errors: "Cette directive doit généralement être DÉS
1717
config_web_magnification: "Grossissement des fontes. Défaut = 1."
1818
config_web_max_uploads: "Maximum admissible nombre de fichiers pour analyse lorsque l'analyse de fichier téléchargements avant d'abandonner l'analyse et informer l'utilisateur qu'ils sont téléchargement trop à la fois ! Fournit protection contre une théorique attaque par lequel un attaquant tente à DDoS votre système ou CMS par surchargeant phpMussel à ralentir le processus de PHP à une halte. Recommandé : 10. Vous pouvez désirer d'augmenter ou diminuer ce nombre dépendamment de la vitesse de votre hardware. Notez que ce nombre ne tient pas compte pour ou inclure le contenus des archives."
1919
config_web_theme: "L'esthétique à utiliser pour la page « Téléchargement Refusé »."
20+
config_web_unsupported_media_type_header: "Devrait phpMussel envoyer les en-têtes 415 lorsque les téléchargements sont bloqués en raison du types de fichiers sur la liste noire ? Lorsqu'il est true, ce paramètre remplace <code>forbid_on_block</code>. False = Non [Défaut] ; True = Oui."
2021
config_web_uploads_log: "Où tous les téléchargements bloqués doivent être enregistrés. Spécifiez un nom de fichier, ou laisser vide à désactiver."
2122
denied: "Téléchargement Refusé !"
2223
denied_reason: "Votre tentative de téléchargement a été bloquée pour les raisons énumérées ci-dessous :"

l10n/hi.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# License: GNU/GPLv2
88
# @see LICENSE.txt
99
#
10-
# This file: Hindi language data (last modified: 2020.07.13).
10+
# This file: Hindi language data (last modified: 2021.06.10).
1111
##/
1212

1313
PrivacyPolicy: "गोपनीयता नीति"
@@ -17,6 +17,7 @@ config_web_ignore_upload_errors: "आमतौर पर यह निर्द
1717
config_web_magnification: "फ़ॉन्ट बढ़ाई। डिफ़ॉल्ट = 1।"
1818
config_web_max_uploads: "अपलोड करने पर स्कैन करने के लिए फाइलों की अधिकतम अनुमति संख्या, स्कैन को रद्द करने और उपयोगकर्ता को सूचित करने से पहले वे एक बार में बहुत अधिक अपलोड कर रहे हैं! एक सैद्धांतिक हमले के विरुद्ध सुरक्षा प्रदान करता है जिससे एक हमलावर phpMussel को ओवरलोड करने के द्वारा पीडीपी PHP को धीमा करने के लिए पीसने से रोकने के लिए आपका सिस्टम या CMS का प्रयास करता है। अनुशंसित: 10। आप अपने हार्डवेयर की गति के आधार पर इस नंबर को बढ़ा या कम कर सकते हैं। ध्यान दें कि इस संख्या में अभिलेखागार की सामग्री शामिल नहीं है।"
1919
config_web_theme: ""अपलोड अस्वीकृत" पृष्ठ के लिए उपयोग करने का सौंदर्यशास्त्र।"
20+
config_web_unsupported_media_type_header: "जब ब्लैक लिस्टेड फ़ाइल प्रकारों के कारण अपलोड अवरुद्ध हो जाते हैं तो क्या phpMussel को 415 हेडर भेजना चाहिए? True होने पर, यह सेटिंग <code>forbid_on_block</code> का स्थान लेती है। False(झूठी) = नहीं [डिफ़ॉल्ट]; True(सच्चे) = हाँ।"
2021
config_web_uploads_log: "जहाँ सभी अवरुद्ध अपलोड को लॉग इन किया जाना चाहिए। फाइल नाम निर्दिष्ट करें, या निष्क्रिय करने के लिए खाली छोड़ें।"
2122
denied: "अपलोड अस्वीकृत!"
2223
denied_reason: "आपके अपलोड को नीचे सूचीबद्ध कारणों के कारण अवरुद्ध किया गया था:"

l10n/id.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# License: GNU/GPLv2
88
# @see LICENSE.txt
99
#
10-
# This file: Indonesian language data (last modified: 2020.07.13).
10+
# This file: Indonesian language data (last modified: 2021.06.10).
1111
##/
1212

1313
PrivacyPolicy: "Kebijakan Privasi"
@@ -17,6 +17,7 @@ config_web_ignore_upload_errors: "Direktif ini umumnya harus DINONAKTIFKAN kecua
1717
config_web_magnification: "Perbesaran font. Default = 1."
1818
config_web_max_uploads: "Maksimum jumla file-file yang diizinkan untuk dipindai selama pemindaian upload file sebelum menghentikan pemindaian dan menginformasikan pengguna bahwa pengguna mengupload terlalu banyak! Menyediakan perlindungan pada serangan teoritis dimana penyerang mencoba DDoS pada sistem Anda atau CMS ada dengan overloading phpMussel supaya berjalan lambat. Proses PHP ke penghentian keras. Recommendasi: 10. Anda dapat menaikkan atau menurunkan angka ini bergantung dari kecepatan hardware Anda. Catat itu nomor ini tidak mengakuntabilitas atau mengikutkan konten dari file terkompres."
1919
config_web_theme: "Estetika yang digunakan untuk halaman "Upload Ditolak"."
20+
config_web_unsupported_media_type_header: "Seharusnya phpMussel mengirimkan 415 headers saat upload diblokir karena jenis filenya ada di daftar hitam? Jika true, pengaturan ini menggantikan <code>forbid_on_block</code>. False = Tidak [Default]; True = Ya."
2021
config_web_uploads_log: "Dimana semua upload yang diblokir harus dicatat. Spesifikan nama atau biarkan kosong untuk menonaktifkan."
2122
denied: "Upload Ditolak!"
2223
denied_reason: "Upload diblokir karena alasan yang tercantum dibawah:"

l10n/it.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# License: GNU/GPLv2
88
# @see LICENSE.txt
99
#
10-
# This file: Italian language data (last modified: 2020.07.13).
10+
# This file: Italian language data (last modified: 2021.06.10).
1111
##/
1212

1313
PrivacyPolicy: "Politica sulla Privacy"
@@ -17,6 +17,7 @@ config_web_ignore_upload_errors: "Questa direttiva dovrebbe generalmente essere
1717
config_web_magnification: "Ingrandimento del carattere. Predefinito = 1."
1818
config_web_max_uploads: "Massimo numero di file per analizzare durante il file caricamenti scansione prima le terminazione del scansione e d'informare dell'utente che essi stai caricando troppo in una volta! Fornisce protezione contro un teorico attacco per cui un malintenzionato utente tenta per DDoS vostra sistema o CMS da sovraccaricamento phpMussel rallentare il PHP processo ad un brusco stop. Raccomandato: 10. Si potrebbe desiderare di aumentare o diminuire che numero basato sulla velocità del vostra sistema e hardware. Si noti che questo numero non tiene conto o includere il contenuti degli archivi."
1919
config_web_theme: "L'estetica da utilizzare per la pagina "Caricamento Negato"."
20+
config_web_unsupported_media_type_header: "phpMussel dovrebbe inviare 415 header quando i caricamenti sono bloccati a causa del tipo di file nella lista nera? Se true, questa impostazione sostituisce <code>forbid_on_block</code>. False = No [Predefinito]; True = Sì."
2021
config_web_uploads_log: "Dove devono essere registrati tutti i caricamenti bloccati. Specificare un nome del file, o lasciare vuoto per disattivarlo."
2122
denied: "Caricamento Negato!"
2223
denied_reason: "Il tentativo di caricamento è stato bloccato per i motivi elencati di seguito:"

0 commit comments

Comments
 (0)