Skip to content

Commit 65fdb9f

Browse files
committed
New configuration directive added.
1 parent af02553 commit 65fdb9f

32 files changed

+179
-703
lines changed

readme.ar.md

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,6 @@ Detected phpMussel-Testfile.ASCII.Standard (ascii_standard_testfile.txt)! Detect
425425

426426
```
427427
التكوين (v3)
428-
429428
├───core
430429
│ scan_log [string]
431430
│ scan_log_serialized [string]
@@ -527,6 +526,7 @@ Detected phpMussel-Testfile.ASCII.Standard (ascii_standard_testfile.txt)! Detect
527526
├───web
528527
│ uploads_log [string]
529528
│ forbid_on_block [bool]
529+
│ unsupported_media_type_header [bool]
530530
│ max_uploads [int]
531531
│ ignore_upload_errors [bool]
532532
│ theme [string]
@@ -1052,6 +1052,9 @@ theme
10521052
##### <div dir="rtl">"forbid_on_block" <code dir="ltr">[bool]</code><br /></div>
10531053
<div dir="rtl"><ul><li>هل phpMussel يرسل 403 من العناوين مع الرسالة منعت إيداع الملف، أو يبقى مع المعتادة 200 موافق؟ خطأ = رقم (200). صحيح/True = نعم (403) [الافتراضي].</li></ul></div>
10541054

1055+
##### <div dir="rtl">"unsupported_media_type_header" <code dir="ltr">[bool]</code><br /></div>
1056+
<div dir="rtl"><ul><li>هل يجب على phpMussel إرسال 415 رأسًا عندما يتم حظر التحميلات بسبب أنواع الملفات المدرجة في القائمة السوداء؟ عندما يكون هذا الإعداد صحيحًا، يحل هذا الإعداد محل <code dir="ltr">forbid_on_block</code>. زائفة/False = لا [الافتراضي]؛ صحيح/True = نعم.</li></ul></div>
1057+
10551058
##### <div dir="rtl">"max_uploads" <code dir="ltr">[int]</code><br /></div>
10561059
<div dir="rtl"><ul><li>العدد الأقصى المسموح به من ملفات لمسح أثناء تحميل الملفات مسح قبل إحباط عملية الفحص وإعلام المستخدم أنهم تحميل أكثر من اللازم في وقت واحد! يوفر الحماية ضد هجوم النظري حيث يحاول أحد المهاجمين دوس النظام الخاص بك أو CMS من الحمولة الزائدة phpMussel إلى إبطاء عملية PHP لوقف طحن. الموصى بها: 10. أنت قد ترغب في رفع أو خفض هذا الرقم اعتمادا على سرعة الجهاز. لاحظ أن هذا الرقم لا يأخذ في الحسبان أو تتضمن محتويات المحفوظات.</li></ul></div>
10571060

@@ -1412,14 +1415,12 @@ $Scanner->destroyScanDebugArray($Foo);
14121415

14131416
```
14141417
اعتمادًا على برنامج تشغيل قاعدة البيانات المستخدم...
1415-
14161418
├─4d (تحذير: تجريبي، لم يتم اختباره، غير مستحسن)
14171419
│ │
14181420
│ │ ╔═══════╗
14191421
│ └─4D:host=localhost;charset=UTF-8
14201422
│ ╚╤══════╝
14211423
│ └المضيف للاتصال مع للعثور على قاعدة البيانات
1422-
14231424
├─cubrid
14241425
│ │
14251426
│ │ ╔═══════╗ ╔═══╗ ╔═════╗
@@ -1430,7 +1431,6 @@ $Scanner->destroyScanDebugArray($Foo);
14301431
│ │ └رقم المنفذ للاتصال بالمضيف مع
14311432
│ │
14321433
│ └المضيف للاتصال مع للعثور على قاعدة البيانات
1433-
14341434
├─dblib
14351435
│ │
14361436
│ │ ╔═══╗ ╔═══════╗ ╔═════╗
@@ -1441,7 +1441,6 @@ $Scanner->destroyScanDebugArray($Foo);
14411441
│ │ └المضيف للاتصال مع للعثور على قاعدة البيانات
14421442
│ │
14431443
│ └"mssql", "sybase", "dblib": القيم الممكنة
1444-
14451444
├─firebird
14461445
│ │
14471446
│ │ ╔═══════════════════╗
@@ -1452,21 +1451,18 @@ $Scanner->destroyScanDebugArray($Foo);
14521451
│ ├يمكن الاتصال مع المضيف ورقم المنفذ
14531452
│ │
14541453
│ └يجب عليك الرجوع إلى وثائق Firebird إذا كنت تريد استخدام هذا
1455-
14561454
├─ibm
14571455
│ │
14581456
│ │ ╔═════╗
14591457
│ └─ibm:DSN=example
14601458
│ ╚╤════╝
14611459
│ └التي فهرستها قاعدة البيانات للتواصل مع
1462-
14631460
├─informix
14641461
│ │
14651462
│ │ ╔═════╗
14661463
│ └─informix:DSN=example
14671464
│ ╚╤════╝
14681465
│ └التي فهرستها قاعدة البيانات للتواصل مع
1469-
14701466
├─mysql (الأكثر الموصى بها)
14711467
│ │
14721468
│ │ ╔═════╗ ╔═══════╗ ╔══╗
@@ -1477,7 +1473,6 @@ $Scanner->destroyScanDebugArray($Foo);
14771473
│ │ └المضيف للاتصال مع للعثور على قاعدة البيانات
14781474
│ │
14791475
│ └اسم قاعدة البيانات المراد استخدامها
1480-
14811476
├─oci
14821477
│ │
14831478
│ │ ╔═════╗
@@ -1488,7 +1483,6 @@ $Scanner->destroyScanDebugArray($Foo);
14881483
│ ├يمكن الاتصال مع المضيف ورقم المنفذ
14891484
│ │
14901485
│ └يجب عليك الرجوع إلى وثائق Oracle إذا كنت تريد استخدام هذا
1491-
14921486
├─odbc
14931487
│ │
14941488
│ │ ╔═════╗
@@ -1499,7 +1493,6 @@ $Scanner->destroyScanDebugArray($Foo);
14991493
│ ├يمكن الاتصال مع المضيف ورقم المنفذ
15001494
│ │
15011495
│ └└يجب عليك الرجوع إلى وثائق ODBC/DB2 إذا كنت تريد استخدام هذا
1502-
15031496
├─pgsql
15041497
│ │
15051498
│ │ ╔═══════╗ ╔══╗ ╔═════╗
@@ -1510,14 +1503,12 @@ $Scanner->destroyScanDebugArray($Foo);
15101503
│ │ └رقم المنفذ للاتصال بالمضيف مع
15111504
│ │
15121505
│ └المضيف للاتصال مع للعثور على قاعدة البيانات
1513-
15141506
├─sqlite
15151507
│ │
15161508
│ │ ╔════════╗
15171509
│ └─sqlite:example.db
15181510
│ ╚╤═══════╝
15191511
│ └المسار إلى ملف قاعدة البيانات المحلية للاستخدام
1520-
15211512
└─sqlsrv
15221513
15231514
│ ╔═══════╗ ╔══╗ ╔═════╗
@@ -1771,4 +1762,4 @@ x.x.x.x - Day, dd Mon 20xx hh:ii:ss +0000 - "admin" - حاليا على.
17711762
---
17721763

17731764

1774-
<div dir="rtl">آخر تحديث: ٧ يونيو ٢٠٢١ (٢٠٢١.٠٦.٠٧).</div>
1765+
<div dir="rtl">آخر تحديث: ١٠ يونيو ٢٠٢١ (٢٠٢١.٠٦.١٠).</div>

readme.de.md

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,6 @@ Das Folgende ist eine Liste der Konfigurationsanweisungen die von phpMussel akze
421421

422422
```
423423
Konfiguration (v3)
424-
425424
├───core
426425
│ scan_log [string]
427426
│ scan_log_serialized [string]
@@ -523,6 +522,7 @@ Konfiguration (v3)
523522
├───web
524523
│ uploads_log [string]
525524
│ forbid_on_block [bool]
525+
│ unsupported_media_type_header [bool]
526526
│ max_uploads [int]
527527
│ ignore_upload_errors [bool]
528528
│ theme [string]
@@ -1045,6 +1045,9 @@ Konfiguration für den Upload-Handler.
10451045
##### "forbid_on_block" `[bool]`
10461046
- Zurückgegebener 403-HTTP-Header bei einem blockierten Dateiupload. False = Nein (200); True = Ja (403) [Standardeinstellung].
10471047

1048+
##### "unsupported_media_type_header" `[bool]`
1049+
- Sollte phpMussel 415 Header senden, wenn Uploads aufgrund von Dateitypen auf der schwarzen Liste blockiert werden? Wenn true, ersetzt diese Einstellung `forbid_on_block`. False = Nein [Standardeinstellung]; True = Ja.
1050+
10481051
##### "max_uploads" `[int]`
10491052
- 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.
10501053

@@ -1400,14 +1403,12 @@ Die Konfigurationsanweisung `pdo_dsn` von phpMussel sollte wie folgt konfigurier
14001403

14011404
```
14021405
Abhängig davon, welcher Datenbanktreiber verwendet wird...
1403-
14041406
├─4d (Warnung: Experimentell, ungetestet, nicht empfohlen!)
14051407
│ │
14061408
│ │ ╔═══════╗
14071409
│ └─4D:host=localhost;charset=UTF-8
14081410
│ ╚╤══════╝
14091411
│ └Der Host, auf dem sich die Datenbank befindet.
1410-
14111412
├─cubrid
14121413
│ │
14131414
│ │ ╔═══════╗ ╔═══╗ ╔═════╗
@@ -1419,7 +1420,6 @@ Abhängig davon, welcher Datenbanktreiber verwendet wird...
14191420
│ │ Verbindung verwendet werden soll.
14201421
│ │
14211422
│ └Der Host, auf dem sich die Datenbank befindet.
1422-
14231423
├─dblib
14241424
│ │
14251425
│ │ ╔═══╗ ╔═══════╗ ╔═════╗
@@ -1430,7 +1430,6 @@ Abhängig davon, welcher Datenbanktreiber verwendet wird...
14301430
│ │ └Der Host, auf dem sich die Datenbank befindet.
14311431
│ │
14321432
│ └Mögliche Werte: "mssql", "sybase", "dblib".
1433-
14341433
├─firebird
14351434
│ │
14361435
│ │ ╔═══════════════════╗
@@ -1443,23 +1442,20 @@ Abhängig davon, welcher Datenbanktreiber verwendet wird...
14431442
│ │
14441443
│ └Sie sollten auf die Firebird-Dokumentation lesen wenn Sie
14451444
│ diese verwenden möchten.
1446-
14471445
├─ibm
14481446
│ │
14491447
│ │ ╔═════╗
14501448
│ └─ibm:DSN=example
14511449
│ ╚╤════╝
14521450
│ └Die katalogisierte Datenbank, mit der eine Verbindung hergestellt
14531451
│ werden soll.
1454-
14551452
├─informix
14561453
│ │
14571454
│ │ ╔═════╗
14581455
│ └─informix:DSN=example
14591456
│ ╚╤════╝
14601457
│ └Die katalogisierte Datenbank, mit der eine Verbindung
14611458
│ hergestellt werden soll.
1462-
14631459
├─mysql (Am meisten empfohlen!)
14641460
│ │
14651461
│ │ ╔═════╗ ╔═══════╗ ╔══╗
@@ -1472,7 +1468,6 @@ Abhängig davon, welcher Datenbanktreiber verwendet wird...
14721468
│ │ └Der Host, auf dem sich die Datenbank befindet.
14731469
│ │
14741470
│ └Der Name der Datenbank.
1475-
14761471
├─oci
14771472
│ │
14781473
│ │ ╔═════╗
@@ -1485,7 +1480,6 @@ Abhängig davon, welcher Datenbanktreiber verwendet wird...
14851480
│ │
14861481
│ └Sie sollten auf die Oracle-Dokumentation lesen wenn Sie diese
14871482
│ verwenden möchten.
1488-
14891483
├─odbc
14901484
│ │
14911485
│ │ ╔═════╗
@@ -1497,7 +1491,6 @@ Abhängig davon, welcher Datenbanktreiber verwendet wird...
14971491
│ │
14981492
│ └Sie sollten auf die ODBC/DB2-Dokumentation lesen wenn Sie diese
14991493
│ verwenden möchten.
1500-
15011494
├─pgsql
15021495
│ │
15031496
│ │ ╔═══════╗ ╔══╗ ╔═════╗
@@ -1509,14 +1502,12 @@ Abhängig davon, welcher Datenbanktreiber verwendet wird...
15091502
│ │ Verbindung verwendet werden soll.
15101503
│ │
15111504
│ └Der Host, auf dem sich die Datenbank befindet.
1512-
15131505
├─sqlite
15141506
│ │
15151507
│ │ ╔════════╗
15161508
│ └─sqlite:example.db
15171509
│ ╚╤═══════╝
15181510
│ └Der Pfad zur lokalen Datenbankdatei, die verwendet werden soll.
1519-
15201511
└─sqlsrv
15211512
15221513
│ ╔═══════╗ ╔══╗ ╔═════╗
@@ -1744,4 +1735,4 @@ Alternativ gibt es einen kurzen (nicht autoritativen) Überblick über die GDPR/
17441735
---
17451736

17461737

1747-
Zuletzt aktualisiert: 7. Juni 2021 (2021.06.07).
1738+
Zuletzt aktualisiert: 10. Juni 2021 (2021.06.10).

readme.en.md

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,6 @@ The following is a list of the configuration directives accepted by phpMussel, a
457457

458458
```
459459
Configuration (v3)
460-
461460
├───core
462461
│ scan_log [string]
463462
│ scan_log_serialized [string]
@@ -559,6 +558,7 @@ Configuration (v3)
559558
├───web
560559
│ uploads_log [string]
561560
│ forbid_on_block [bool]
561+
│ unsupported_media_type_header [bool]
562562
│ max_uploads [int]
563563
│ ignore_upload_errors [bool]
564564
│ theme [string]
@@ -1081,6 +1081,9 @@ Configuration for the upload handler.
10811081
##### "forbid_on_block" `[bool]`
10821082
- Should phpMussel send 403 headers with the file upload blocked message, or stick with the usual 200 OK? False = No (200); True = Yes (403) [Default].
10831083

1084+
##### "unsupported_media_type_header" `[bool]`
1085+
- Should phpMussel send 415 headers when uploads are blocked due to blacklisted filetypes? When true, this setting supersedes `forbid_on_block`. False = No [Default]; True = Yes.
1086+
10841087
##### "max_uploads" `[int]`
10851088
- 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.
10861089

@@ -1436,14 +1439,12 @@ phpMussel's `pdo_dsn` configuration directive should be configured as described
14361439

14371440
```
14381441
Depending on which database driver is used...
1439-
14401442
├─4d (Warning: Experimental, untested, not recommended!)
14411443
│ │
14421444
│ │ ╔═══════╗
14431445
│ └─4D:host=localhost;charset=UTF-8
14441446
│ ╚╤══════╝
14451447
│ └The host to connect with to find the database.
1446-
14471448
├─cubrid
14481449
│ │
14491450
│ │ ╔═══════╗ ╔═══╗ ╔═════╗
@@ -1454,7 +1455,6 @@ Depending on which database driver is used...
14541455
│ │ └The port number to connect to the host.
14551456
│ │
14561457
│ └The host to connect with to find the database.
1457-
14581458
├─dblib
14591459
│ │
14601460
│ │ ╔═══╗ ╔═══════╗ ╔═════╗
@@ -1465,7 +1465,6 @@ Depending on which database driver is used...
14651465
│ │ └The host to connect with to find the database.
14661466
│ │
14671467
│ └Possible values: "mssql", "sybase", "dblib".
1468-
14691468
├─firebird
14701469
│ │
14711470
│ │ ╔═══════════════════╗
@@ -1477,21 +1476,18 @@ Depending on which database driver is used...
14771476
│ │
14781477
│ └You should refer to the Firebird documentation if you
14791478
│ want to use this.
1480-
14811479
├─ibm
14821480
│ │
14831481
│ │ ╔═════╗
14841482
│ └─ibm:DSN=example
14851483
│ ╚╤════╝
14861484
│ └Which catalogued database to connect with.
1487-
14881485
├─informix
14891486
│ │
14901487
│ │ ╔═════╗
14911488
│ └─informix:DSN=example
14921489
│ ╚╤════╝
14931490
│ └Which catalogued database to connect with.
1494-
14951491
├─mysql (Most recommended!)
14961492
│ │
14971493
│ │ ╔═════╗ ╔═══════╗ ╔══╗
@@ -1504,7 +1500,6 @@ Depending on which database driver is used...
15041500
│ │ database.
15051501
│ │
15061502
│ └The name of the database to use.
1507-
15081503
├─oci
15091504
│ │
15101505
│ │ ╔═════╗
@@ -1516,7 +1511,6 @@ Depending on which database driver is used...
15161511
│ │
15171512
│ └You should refer to the Oracle documentation if you want to
15181513
│ use this.
1519-
15201514
├─odbc
15211515
│ │
15221516
│ │ ╔═════╗
@@ -1528,7 +1522,6 @@ Depending on which database driver is used...
15281522
│ │
15291523
│ └You should refer to the ODBC/DB2 documentation if you want to use
15301524
│ this.
1531-
15321525
├─pgsql
15331526
│ │
15341527
│ │ ╔═══════╗ ╔══╗ ╔═════╗
@@ -1539,14 +1532,12 @@ Depending on which database driver is used...
15391532
│ │ └The port number to connect to the host.
15401533
│ │
15411534
│ └The host to connect with to find the database.
1542-
15431535
├─sqlite
15441536
│ │
15451537
│ │ ╔════════╗
15461538
│ └─sqlite:example.db
15471539
│ ╚╤═══════╝
15481540
│ └The path to the local database file to use.
1549-
15501541
└─sqlsrv
15511542
15521543
│ ╔═══════╗ ╔══╗ ╔═════╗
@@ -1773,4 +1764,4 @@ Alternatively, there's a brief (non-authoritative) overview of GDPR/DSGVO availa
17731764
---
17741765

17751766

1776-
Last Updated: 7 June 2021 (2021.06.07).
1767+
Last Updated: 10 June 2021 (2021.06.10).

0 commit comments

Comments
 (0)