From: Ilmari Karonen Date: Fri, 21 Nov 2008 06:08:31 +0000 (+0000) Subject: also fix image names with magic tildes in them, got a few on enwiki X-Git-Tag: 1.31.0-rc.0~44238 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=f7c0be43eb2bc1f7e166b70249e50526bb058c45;p=lhc%2Fweb%2Fwiklou.git also fix image names with magic tildes in them, got a few on enwiki --- 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 );