r68849 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r68848‎ | r68849 | r68850 >
Date:19:57, 1 July 2010
Author:hartman
Status:ok
Tags:
Comment:
Make sure we use the right variable. Follow up r68848.
Modified paths:
  • /trunk/phase3/skins/common/upload.js (modified) (history)

Diff [purge]

Index: trunk/phase3/skins/common/upload.js
@@ -242,7 +242,7 @@
243243 // Clear the filename if it does not have a valid extension.
244244 // URLs are less likely to have a useful extension, so don't include them in the
245245 // extension check.
246 - if( $wgStrictFileExtensions && wgFileExtensions && id != 'wpUploadFileURL' ) {
 246+ if( wgStrictFileExtensions && wgFileExtensions && id != 'wpUploadFileURL' ) {
247247 var found = false;
248248 if( fname.lastIndexOf( '.' ) != -1 ) {
249249 var ext = fname.substr( fname.lastIndexOf( '.' ) + 1 );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r68848(bug 24022) Don't check extensions of files in uploadpage script when $wgStri...hartman19:55, 1 July 2010

Status & tagging log