手册:cleanupImages.php
Appearance
MediaWiki文件: cleanupImages.php | |
---|---|
位置: | maintenance/ |
源代码: | master • 1.42.3 • 1.41.4 • 1.39.10 |
类: | ImageCleanup |
详情
cleanupImages.php 文件是一个维护脚本,用于清理损坏或无法解析的上传文件名。所做的编辑将归因于名为Conversion script 的用户。
用法
选项/参数 | 描述 |
---|---|
--dry-run | 执行试运行 |
技术详情
These notes are based on an inspection of cleanupImages.php
from MediaWiki 1.19.
问题名称
Image names containing the following elements are candidates for name replacement:
- percent codes
- HTML entities
- deprecated Latin-1 characters
- non-normalized Unicode
替换名称
When encountering a problematic image name, the script will attempt to automatically derive a safe name. If the derived name comes up empty (perhaps there is nothing left after removal of unsafe characters) or the derived name matches the name of another image which already exists, the problematic image file will be skipped without name replacement.