I think that Drupal's default "Filtered HTML" input format should leave <a href="skype:USERNAME?call"> HTML code as is.

Comments

realityloop’s picture

Version: 5.x-dev » 6.6

Adding a skype link to the site footer via the Site Information page like this:

<a href="skype:username?call">Call username with skype</a>

Will render the following code:

<a href="username?call">Call username with skype</a>

There is no option to select Full HTML as the filter for the footer region, is it possible to make skype links work with Filtered HTML?

maartenvg’s picture

Status: Active » Fixed

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:

variable_set('filter_allowed_protocols', array('http', 'https', 'ftp', 'news', 'nntp', 'telnet', 'mailto', 'irc', 'ssh', 'sftp', 'webcal', 'rtsp', 'skype'));

2. Or you can hardcode the value in your settings.php file. Scroll down to the bottom of the settings.php file and you'll find a commented out section of code like this:

# $conf = array(
#   'site_name' => 'My Drupal site',
#   'theme_default' => 'minnelli',
#   'anonymous' => 'Visitor',
# );

Change this to:

  $conf = array(
    'filter_allowed_protocols' => array('http', 'https', 'ftp', 'news', 'nntp', 'telnet', 'mailto', 'irc', 'ssh', 'sftp', 'webcal', 'rtsp', 'skype');
  );
realityloop’s picture

Thanks Maarten, worked a treat!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

bergco’s picture

There's a typo in the code you should to paste into settings.php, as said here: http://drupal.org/node/185350#comment-616830

Besides, in my site the code won't work with the around it, so I use the following now (and it works):

$conf = array(
'filter_allowed_protocols' => array('http', 'https', 'ftp', 'news', 'nntp', 'telnet', 'mailto', 'irc', 'ssh', 'sftp', 'webcal', 'mms', 'rstp', 'skype'),
);

dave reid’s picture

Title: Skype links support » Add more chat protocol support to filter_allowed_protocols
Version: 6.6 » 7.x-dev
Assigned: Unassigned » dave reid
Category: feature » bug
Status: Closed (fixed) » Active

There are a few chat protocol formats we should add since we include irc://

skype://
gtalk://
xmpp:// (jabber)

dave reid’s picture

Status: Active » Fixed

I doubt this would gain any support for proprietary chats like gtalk and skype, so I'm going to mark this back as fixed. Note I've also created a small D6 and D7 module http://drupal.org/project/filter_protocols to expose this variables settings.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

web_deva’s picture

Version: 7.x-dev » 6.20
Status: Closed (fixed) » Needs review

How could be explained the following transformation of a correct link?

<a href="skype:username?call">Call username with skype</a>

Expected result:
<a href="username?call">Call username with skype</a>

Rendered code:
<a href="username?call=">Call username with skype</a>

Any piece of advice is more than welcome.

googlg’s picture

Version: 6.20 » 7.19

I try to add a Link Field and the field use the itms-services protocol, I want to use the filter_protocol module to add the itms-services protocol,but failed.

mgifford’s picture

Version: 7.19 » 7.x-dev
Assigned: dave reid » Unassigned
Issue summary: View changes
Status: Needs review » Closed (won't fix)

Not sure it can be fixed as @Dave Reid said. If it can, please explain how.

stephen ollman’s picture

Drupal 8 solution?

stephen ollman’s picture

For D8 update the file at /sites/default/service.yml

parameters:
filter_protocols: [http, https, ftp, news, nntp, tel, telnet, mailto, irc, ssh, sftp, webcal, rtsp, sip, callto]