From: Ævar Arnfjörð Bjarmason Date: Thu, 21 Jul 2005 20:52:48 +0000 (+0000) Subject: * Make makeInternalOrExternalUrl() use the same url protocols as the parser X-Git-Tag: 1.5.0beta4~77 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=7cb597d5136207ec2a1e5ce9ca1e52740ffddba3;p=lhc%2Fweb%2Fwiklou.git * Make makeInternalOrExternalUrl() use the same url protocols as the parser --- 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 );