Page MenuHomePhabricator

bug23845.patch

Authored By
bzimport
Nov 21 2014, 11:10 PM
Size
689 B
Referenced Files
None
Subscribers
None

bug23845.patch

Index: SpecialListfiles.php
===================================================================
--- SpecialListfiles.php (revision 67860)
+++ SpecialListfiles.php (working copy)
@@ -146,7 +146,7 @@
if ( $imgfile === null ) $imgfile = wfMsg( 'imgfile' );
$name = $this->mCurrentRow->img_name;
- $link = $this->getSkin()->linkKnown( Title::makeTitle( NS_FILE, $name ), htmlspecialchars( $value ) );
+ $link = $this->getSkin()->linkKnown( Title::makeTitle( NS_FILE, $name ), htmlspecialchars( str_replace( '_', ' ', $value ) ) );
$image = wfLocalFile( $value );
$url = $image->getURL();
$download = Xml::element('a', array( 'href' => $url ), $imgfile );

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6465
Default Alt Text
bug23845.patch (689 B)

Event Timeline