diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-10-21 11:58:19 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-10-21 11:58:19 +0000 |
commit | c7e9857de4887d33f8020a4e843ef854848f454e (patch) | |
tree | a282b5078f77b1360087df63bfb207842a32db34 | |
parent | 88f5dd3135a0598f7a75c864081d6f52a0599c6c (diff) | |
download | brdo-c7e9857de4887d33f8020a4e843ef854848f454e.tar.gz brdo-c7e9857de4887d33f8020a4e843ef854848f454e.tar.bz2 |
- Patch #945332 by webkenny: allow 'tel:' protocol through drupal_strip_dangerous_protocols().
-rw-r--r-- | includes/common.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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. |