From: Mark A. Hershberger Date: Fri, 26 Feb 2010 02:41:49 +0000 (+0000) Subject: follow-up r61836 - allow any URL X-Git-Tag: 1.31.0-rc.0~37601 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=267bcb1ba9943595dd34703b8dca29eb4c63b599;p=lhc%2Fweb%2Fwiklou.git follow-up r61836 - allow any URL --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 0b4a45c668..4543569b78 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -186,7 +186,7 @@ class OutputPage { */ public function addScriptFile( $file ) { global $wgStylePath, $wgStyleVersion; - if( substr( $file, 0, 1 ) == '/' || substr( $file, 0, 7 ) == 'http://' ) { + if( substr( $file, 0, 1 ) == '/' || preg_match( '#^[a-z]*://#i', $file ) ) { $path = $file; } else { $path = "{$wgStylePath}/common/{$file}";