Open main menu
This page is a translated version of the page Manual:$wgCheckFileExtensions and the translation is 64% complete.

Other languages:
English • ‎Nederlands • ‎español • ‎magyar • ‎polski • ‎中文 • ‎日本語
上传: $wgCheckFileExtensions
检查上传是是否允许文件名
引进版本:1.2.0
移除版本:仍在使用
允许的值:(布尔值)
默认值:true
其他设置: 按首字母排序 | 按功能排序

细节

如果为true,则所有上载的文件都将检查其文件扩展名,具体取决于各种配置设置(请参阅下文),以确定是否允许上载。

如果为false,则不会进行大多数文件扩展名检查。 在这种情况下,几乎所有的文件上传都被允许

  警告: 将此设置为false对于公共wiki是不安全的
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 $wgFileBlacklist . The $wgStrictFileExtensions variable may have the desired effect. This bug was corrected in version 1.13.0 (任务T16220).

参见