From f7c0be43eb2bc1f7e166b70249e50526bb058c45 Mon Sep 17 00:00:00 2001 From: Ilmari Karonen Date: Fri, 21 Nov 2008 06:08:31 +0000 Subject: [PATCH] also fix image names with magic tildes in them, got a few on enwiki --- maintenance/cleanupImages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/cleanupImages.php b/maintenance/cleanupImages.php index df765d816f..69333fefa8 100644 --- a/maintenance/cleanupImages.php +++ b/maintenance/cleanupImages.php @@ -167,7 +167,7 @@ class ImageCleanup extends TableCleanup { function buildSafeTitle( $name ) { global $wgLegalTitleChars; $x = preg_replace_callback( - "/([^$wgLegalTitleChars])/", + "/([^$wgLegalTitleChars]|~)/", array( $this, 'hexChar' ), $name ); -- 2.20.1