diff options
author | Brion Vibber <brion@users.mediawiki.org> | 2006-09-10 12:11:36 +0000 |
---|---|---|
committer | Brion Vibber <brion@users.mediawiki.org> | 2006-09-10 12:11:36 +0000 |
commit | cbb9596427c28c877d63d6f5bb8de0855bd3eaf6 (patch) | |
tree | 345113774a8af206f721da818e38ee15f376ceb8 /img_auth.php | |
parent | 656d7202fa595fce6f7f66ecdc57cb21520b525d (diff) | |
download | mediawikicore-cbb9596427c28c877d63d6f5bb8de0855bd3eaf6.tar.gz mediawikicore-cbb9596427c28c877d63d6f5bb8de0855bd3eaf6.zip |
* (bug 7279) Use wfBaseName in place of basename() in more places
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/16465
Diffstat (limited to 'img_auth.php')
-rw-r--r-- | img_auth.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/img_auth.php b/img_auth.php index 4917fe50915a..cfe005e93697 100644 --- a/img_auth.php +++ b/img_auth.php @@ -18,7 +18,7 @@ if( !isset( $_SERVER['PATH_INFO'] ) ) { # Get filenames/directories $filename = realpath( $wgUploadDirectory . $_SERVER['PATH_INFO'] ); $realUploadDirectory = realpath( $wgUploadDirectory ); -$imageName = $wgContLang->getNsText( NS_IMAGE ) . ":" . basename( $_SERVER['PATH_INFO'] ); +$imageName = $wgContLang->getNsText( NS_IMAGE ) . ":" . wfBaseName( $_SERVER['PATH_INFO'] ); # Check if the filename is in the correct directory if ( substr( $filename, 0, strlen( $realUploadDirectory ) ) != $realUploadDirectory ) { |