From 7cb597d5136207ec2a1e5ce9ca1e52740ffddba3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Thu, 21 Jul 2005 20:52:48 +0000 Subject: [PATCH] * Make makeInternalOrExternalUrl() use the same url protocols as the parser --- includes/Skin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Skin.php b/includes/Skin.php index 724415d891..0c0c660af7 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -1247,7 +1247,7 @@ END; # If url string starts with http, consider as external URL, else # internal /*static*/ function makeInternalOrExternalUrl( $name ) { - if ( strncmp( $name, 'http', 4 ) == 0 ) { + if ( preg_match( '/^(?:' . URL_PROTOCOLS . ')/', $name ) ) { return $name; } else { return $this->makeUrl( $name ); -- 2.20.1