From b3464402c0d126b11a7a8ad60f0ba79d807abe5d Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Sun, 1 Feb 2004 12:21:26 +0000 Subject: [PATCH] Fix wfImagePath: removed invalid urlencode() --- includes/GlobalFunctions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index dc8cfc5797..88ec901d03 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -109,9 +109,9 @@ function wfImagePath( $img ) $name = $nt->getDBkey(); $hash = md5( $name ); - $url = "{$wgUploadDirectory}/" . $hash{0} . "/" . + $path = "{$wgUploadDirectory}/" . $hash{0} . "/" . substr( $hash, 0, 2 ) . "/{$name}"; - return wfUrlencode( $url ); + return $path; } function wfThumbUrl( $img ) -- 2.20.1