Trying to use an mms:// protocol link, but the Drupal core l(), url() function is prefixing the URL with http://, so it comes out like: http://mms%3A//

Setting the link_options['external'] attribute to TRUE fixes the problem. I'm working on a small patch to add a checkbox that controls this option in the field settings.

Comments

EWB’s picture

erikvip,

Can you please explain where you found and changed the "link_options['external'] attribute"?

thanks

xiukun.zhou’s picture

This is mainly because Drupal does not support MMS protocol by default. You would probably need to run the following codes and reset required protocol.

variable_set('filter_allowed_protocols', array('ftp', 'http', 'https', 'irc', 'mailto', 'news', 'nntp', 'rtsp', 'sftp', 'ssh', 'tel', 'telnet', 'webcal', 'mms'));
jcfiala’s picture

Status: Active » Closed (won't fix)

xiukun.zhou has it right, erikvip. The correct thing to do is to set the filter_allowed_protocols to include 'mms'. You can do a variable_set, or you can put

$conf['filter_allowed_protocols'] = array('ftp', 'http', 'https', 'irc', 'mailto', 'news', 'nntp', 'rtsp', 'sftp', 'ssh', 'tel', 'telnet', 'webcal', 'mms');

in your settings.php file.