MediaWiki r10228 - Code Review

Jump to: navigation, search
Repository:MediaWiki
Revision:r10227‎ | r10228 (on ViewVC)‎ | r10229 >
Date:20:52, 21 July 2005
Author:avar
Status:old
Tags:
Comment:
* Make makeInternalOrExternalUrl() use the same url protocols as the parser
Modified paths:

Diff [purge]

Index: trunk/phase3/includes/Skin.php
@@ -1247,7 +1247,7 @@
12481248 # If url string starts with http, consider as external URL, else
12491249 # internal
12501250 /*static*/ function makeInternalOrExternalUrl( $name ) {
1251 - if ( strncmp( $name, 'http', 4 ) == 0 ) {
 1251+ if ( preg_match( '/^(?:' . URL_PROTOCOLS . ')/', $name ) ) {
12521252 return $name;
12531253 } else {
12541254 return $this->makeUrl( $name );

Status & tagging log

  • 01:58, 13 October 2010 ^demon (Talk | contribs) changed the status of r10228 [removed: new added: old]
Personal tools
Namespaces

Variants
Views
Actions
Navigation
Support
Download
Development
Communication
Toolbox