r41419 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41418‎ | r41419 | r41420 >
Date:08:45, 30 September 2008
Author:tstarling
Status:old
Tags:
Comment:
Hostnames are allowed to have dots in them
Modified paths:
  • /trunk/phase3/includes/GlobalFunctions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/GlobalFunctions.php
@@ -298,7 +298,7 @@
299299 $host = $m[2];
300300 $port = $m[3];
301301 $prefix = isset( $m[4] ) ? $m[4] : false;
302 - } elseif ( preg_match( '!^(tcp|udp):(?://)?([a-zA-Z0-9-]+):(\d+)(?:/(.*))?$!', $file, $m ) ) {
 302+ } elseif ( preg_match( '!^(tcp|udp):(?://)?([a-zA-Z0-9.-]+):(\d+)(?:/(.*))?$!', $file, $m ) ) {
303303 $protocol = $m[1];
304304 $host = $m[2];
305305 $port = $m[3];

Status & tagging log