r83225 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83224‎ | r83225 | r83226 >
Date:18:09, 4 March 2011
Author:kaldari
Status:deferred
Tags:
Comment:
fix for Bug 26070
Modified paths:
  • /trunk/extensions/UploadWizard/resources/mw.UploadWizard.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js
@@ -558,6 +558,7 @@
559559 var _this = this;
560560 // TODO get basename of file; Chrome does this C:\fakepath\something which is highly irritating
561561 var path = _this.$fileInputCtrl.val();
 562+ path = path.replace(/\w:.*\\(.*)$/,'$1');
562563
563564 // visible filename
564565 $j( _this.form ).find( '.mwe-upwiz-visible-file-filename-text' ).html( path );

Status & tagging log