From 267bcb1ba9943595dd34703b8dca29eb4c63b599 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Fri, 26 Feb 2010 02:41:49 +0000 Subject: [PATCH] follow-up r61836 - allow any URL --- includes/OutputPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}"; -- 2.20.1