Enable skype and callto protocols with Drupal 6
Posted by: Brian Gilbert | Filed under: Drupal
The bad guy is filter_xss_bad_protocol(), which allows for all kinds of protocols, but not skype. Because it uses a (hidden) variable, you can change it by hand using one of the following methods: This works or D5 as well.
1. If you have devel module, execute this code in the "Execute PHP" block:<?php variable_set('filter_allowed_protocols', array('http', 'https', 'ftp', 'news', 'nntp', 'telnet', 'mailto', 'irc', 'ssh', 'sftp', 'webcal', 'rtsp', 'skype')); ?>
<?php
# $conf = array(
# 'site_name' => 'My Drupal site',
# 'theme_default' => 'minnelli',
# 'anonymous' => 'Visitor',
# );
?>
<?php
$conf = array(
'filter_allowed_protocols' => array('http', 'https', 'ftp', 'news', 'nntp', 'telnet', 'mailto', 'irc', 'ssh', 'sftp', 'webcal', 'rtsp', 'skype')
);
?>

Post new comment