手册:$wgStrictFileExtensions

This page is a translated version of the page Manual:$wgStrictFileExtensions and the translation is 40% complete.
文件及文件上传: $wgStrictFileExtensions
Toggle whether users may upload files not covered by $wgFileExtensions .
引进版本:1.2.0
移除版本:仍在使用
允许的值:(布尔值)
默认值:true

详情

如果设置成能够功,用户将只能通过特殊的扩展上传文件。 (see $wgFileExtensions )

If set to false, users will be able to upload files with almost any extension. A user attempting to upload a file whose extension is not in $wgFileExtensions will receive a warning message. However, they may choose to ignore the message and upload the file anyway (assuming the file's extension is not in the $wgFileBlacklist ).

  警告: Setting this to false is insecure for public wikis.

See also