r103605 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103604‎ | r103605 | r103606 >
Date:19:43, 18 November 2011
Author:dale
Status:ok
Tags:
Comment:
apply patch from bug 32476 ( fixes relative paths issue )
Modified paths:
  • /trunk/extensions/MwEmbedSupport/MwEmbedModules/MediaWikiSupport/resources/mw.Api.js (modified) (history)

Diff [purge]

Index: trunk/extensions/MwEmbedSupport/MwEmbedModules/MediaWikiSupport/resources/mw.Api.js
@@ -241,8 +241,8 @@
242242 * false if the domain is
243243 */
244244 mw.isLocalDomain = function( url ) {
245 - if( new mw.Uri( document.URL ).host == new mw.Uri( url ).host
246 - || url.indexOf( '://' ) == -1 )
 245+ if( url.indexOf('://') == -1 ||
 246+ new mw.Uri( document.URL ).host == new mw.Uri( url ).host )
247247 {
248248 return true;
249249 }
@@ -375,4 +375,4 @@
376376 return false;
377377 };
378378
379 -}) ( window.mediaWiki, window.jQuery );
\ No newline at end of file
 379+}) ( window.mediaWiki, window.jQuery );

Status & tagging log