From c7e9857de4887d33f8020a4e843ef854848f454e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 21 Oct 2010 11:58:19 +0000 Subject: - Patch #945332 by webkenny: allow 'tel:' protocol through drupal_strip_dangerous_protocols(). --- includes/common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index eda5f14f2..b15dccd2f 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -1241,7 +1241,7 @@ function drupal_strip_dangerous_protocols($uri) { static $allowed_protocols; if (!isset($allowed_protocols)) { - $allowed_protocols = array_flip(variable_get('filter_allowed_protocols', array('ftp', 'http', 'https', 'irc', 'mailto', 'news', 'nntp', 'rtsp', 'sftp', 'ssh', 'telnet', 'webcal'))); + $allowed_protocols = array_flip(variable_get('filter_allowed_protocols', array('ftp', 'http', 'https', 'irc', 'mailto', 'news', 'nntp', 'rtsp', 'sftp', 'ssh', 'tel', 'telnet', 'webcal'))); } // Iteratively remove any invalid protocol found. -- cgit v1.2.3