Podręcznik:$wgCheckFileExtensions
Appearance
Files and file uploads: $wgCheckFileExtensions | |
---|---|
Check if the file extension is allowed on upload. |
|
Wprowadzono w wersji: | 1.2.0 |
Usunięto w wersji: | nadal w użyciu |
Dozwolone wartości: | (wartość logiczna) |
Domyślna wartość: | true |
Inne ustawienia: Alfabetycznie | Według funkcji |
Szczegóły
If true, all uploaded files will have their file extension checked, depending on various configuration settings (see below), to determine whether the upload will be allowed.
If false, most file extension checks will not take place. In this case, almost all file uploads will be allowed.
Wersja MediaWiki: | ≤ 1.13 |
In version 1.11.1, there appears to be a bug that prevents this setting from actually working.
(SpecialUpload.php line 353 isn't checking the value of this variable like it should.)
Due to this, it is unclear from the code whether $wgCheckFileExtensions
was intended to override $wgProhibitedFileExtensions
.
The $wgStrictFileExtensions
variable may have the desired effect.
Ten błąd został poprawiony w wersji 1.13.0 (zadanie T16220).