From f3bc883511cb9d66d17ab780e8e70e69519d3f78 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Sun, 5 Nov 2006 20:58:32 +0000 Subject: [PATCH] URLs shouldn't ever be strtolowered. They can be case-sensitive. --- RELEASE-NOTES | 1 + includes/SpecialUpload.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 30274f709a..6e5b131777 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -143,6 +143,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 7801) Add support for parser function hooks in parser tests * checkUsernames.php now uses wfDebugLog instead of hardcoded path to log * (bug 7810) Update talk namespaces for Occitan +* Allow case-sensitive URLs to be used for uploading from URLs. == Languages updated == diff --git a/includes/SpecialUpload.php b/includes/SpecialUpload.php index 5873dfed0c..5704e2733e 100644 --- a/includes/SpecialUpload.php +++ b/includes/SpecialUpload.php @@ -133,7 +133,7 @@ class UploadForm { } # Maybe remove some pasting blanks :-) - $url = strtolower( trim( $url ) ); + $url = trim( $url ); if( substr( $url, 0, 7 ) != 'http://' && substr( $url, 0, 6 ) != 'ftp://' ) { # Only HTTP or FTP URLs return true; -- 2.20.1