http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97559
Revision: 97559
Author: brion
Date: 2011-09-19 21:18:01 +0000 (Mon, 19 Sep 2011)
Log Message:
-----------
MFT r97558: fix/eliminate bug 30977 and restore Special:FilePath's input
validation to 2008 borders
Modified Paths:
--------------
branches/REL1_18/phase3/includes/specials/SpecialFilepath.php
branches/REL1_18/phase3/languages/messages/MessagesEn.php
Modified: branches/REL1_18/phase3/includes/specials/SpecialFilepath.php
===================================================================
--- branches/REL1_18/phase3/includes/specials/SpecialFilepath.php
2011-09-19 21:16:00 UTC (rev 97558)
+++ branches/REL1_18/phase3/includes/specials/SpecialFilepath.php
2011-09-19 21:18:01 UTC (rev 97559)
@@ -40,7 +40,7 @@
$file = !is_null( $par ) ? $par : $wgRequest->getText( 'file' );
- $title = Title::makeTitleSafe( NS_FILE, $file );
+ $title = Title::newFromText( $file, NS_FILE );
if ( ! $title instanceof Title || $title->getNamespace() !=
NS_FILE ) {
$this->showForm( $title );
Modified: branches/REL1_18/phase3/languages/messages/MessagesEn.php
===================================================================
--- branches/REL1_18/phase3/languages/messages/MessagesEn.php 2011-09-19
21:16:00 UTC (rev 97558)
+++ branches/REL1_18/phase3/languages/messages/MessagesEn.php 2011-09-19
21:18:01 UTC (rev 97559)
@@ -4490,10 +4490,8 @@
'filepath-page' => 'File:',
'filepath-submit' => 'Go',
'filepath-summary' => 'This special page returns the complete path for a file.
-Images are shown in full resolution, other file types are started with their
associated program directly.
+Images are shown in full resolution, other file types are started with their
associated program directly.',
-Enter the file name without the "{{ns:file}}:" prefix.',
-
# Special:FileDuplicateSearch
'fileduplicatesearch' => 'Search for duplicate files',
'fileduplicatesearch-summary' => 'Search for duplicate files based on hash
values.',
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs