Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -298,7 +298,7 @@ |
299 | 299 | $host = $m[2]; |
300 | 300 | $port = $m[3]; |
301 | 301 | $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 ) ) { |
303 | 303 | $protocol = $m[1]; |
304 | 304 | $host = $m[2]; |
305 | 305 | $port = $m[3]; |