From 40221c889cdd3a0b889a5d685ae054df4dcfff44 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sun, 30 Oct 2005 11:25:50 +0000 Subject: [PATCH] * (bug 3808) added nntp:// to the url protocol whitelist * added worlwind:// to the url protocol whitelist --- includes/DefaultSettings.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index a59903637d..5a633a6337 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -148,9 +148,19 @@ $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF"; /** - * The external URL protocols (regexp) - */ -$wgUrlProtocols = 'http:\/\/|https:\/\/|ftp:\/\/|irc:\/\/|gopher:\/\/|news:|mailto:'; + * The external URL protocols + */ +$wgUrlProtocols = array( + 'http://', + 'https://', + 'ftp://', + 'irc://', + 'gopher://', + 'nntp://', // @bug 3808 RFC 1738 + 'worldwind://', + 'mailto:', + 'news:' +); /** internal name of virus scanner. This servers as a key to the $wgAntivirusSetup array. * Set this to NULL to disable virus scanning. If not null, every file uploaded will be scanned for viruses. -- 2.20.1