r102601 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102600‎ | r102601 | r102602 >
Date:23:28, 9 November 2011
Author:reedy
Status:ok
Tags:
Comment:
Modified paths:
  • /branches/wmf/1.18wmf1/extensions (modified) (history)
  • /branches/wmf/1.18wmf1/extensions/WikiEditor (modified) (history)
  • /branches/wmf/1.18wmf1/extensions/WikiEditor/modules/jquery.wikiEditor.dialogs.config.js (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/extensions/WikiEditor/modules/jquery.wikiEditor.dialogs.config.js
@@ -502,9 +502,11 @@
503503 }
504504 },
505505 open: function() {
 506+ // Obtain the server name without the protocol. wgServer may be protocol-relative
 507+ var serverName = mw.config.get( 'wgServer' ).replace( /^(https?:)?\/\//, '' );
506508 // Cache the articlepath regex
507509 $(this).data( 'articlePathRegex', new RegExp(
508 - '^' + $.escapeRE( mw.config.get( 'wgServer' ) + mw.config.get( 'wgArticlePath' ) )
 510+ '^https?://' + $.escapeRE( serverName + mw.config.get( 'wgArticlePath' ) )
509511 .replace( /\\\$1/g, '(.*)' ) + '$'
510512 ) );
511513 // Pre-fill the text fields based on the current selection
Property changes on: branches/wmf/1.18wmf1/extensions/WikiEditor
___________________________________________________________________
Modified: svn:mergeinfo
512514 Merged /trunk/extensions/WikiEditor:r100699
Property changes on: branches/wmf/1.18wmf1/extensions
___________________________________________________________________
Modified: svn:mergeinfo
513515 Merged /trunk/extensions:r100699

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r100699(bug 31499) articlePathRegex (detection of external links within the same wik...catrope14:30, 25 October 2011

Status & tagging log