Manual:$wgIllegalFileChars
廃止予定: この機能は廃止予定 であり、使用してはいけませんが、後方互換性 のためまだ利用可能です。 |
ファイルとファイル アップロード: $wgIllegalFileChars | |
---|---|
Override the default list of illegal characters in file names. |
|
導入されたバージョン: | 1.16.0 (r55802) |
廃止予定になったバージョン: | 1.41.0 (Gerrit change 942710; git #1552f420) |
除去されたバージョン: | 使用中 |
許容される値: | (文字列) |
既定値: | ':\\/\\\\' (1.39+)
":" (1.16-1.27) |
その他の設定: アルファベット順 | 機能順 |
詳細
This is a regex character class (i.e. a list of characters in a format suitable for a regular expression) that you want MediaWiki to convert to dashes ("-") despite being in the list of allowable title characters.
By default, file names can use the same characters as titles (see $wgLegalTitleChars ), except for those characters listed in this variable, the default being the colon, slash and backslash. All invalid characters in file names, including those listed in this variable, will automatically be converted to dashes ("-").
The default will not allow namespaces to be part of file names (example: File:Project:filename.txt). While this is generally desirable, it interferes with any extension that uses namespace indexing or protection. To keep the colon from being converted to a dash, remove the colon from the value of this variable.
References
- change log for 1.16.0, where this variable was introduced