I believe in the previous version 6 it was possible to disable the URL validation. It would be nice that this feature would be ported to version 7.

I'm using the link field for special protocol/URI handlers as 'callto://' and 'skype://'. It seams that they are not valid URL's although mailto:// is accepted.

Thanks

CommentFileSizeAuthor
#6 url_validation_skype-1148864-6.patch1.82 KBlolandese

Comments

jcfiala’s picture

I'm about to take a look at this, but I'll note that which protocols you accept for uri's is specified in a variable - to be precise:

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

As such, if you stuff the 'filtered_allowed_protocols' with a different array, you can add callto and skype.

jcfiala’s picture

Alright, I've just pushed this change through up to server... should be on Dev in a bit.

Actually considering pushing out an alpha 4 release this weekend.

jcfiala’s picture

Status: Active » Fixed

Bah, forgot to mark as fixed.

Status: Fixed » Closed (fixed)

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

lolandese’s picture

In addition, to include other protocols unaltered, use https://drupal.org/project/filter_protocols.

After enabling that tiny module, just go to 'admin/config/content/formats/protocols' and add e.g. 'skype'.

lolandese’s picture

Version: 7.x-1.0-alpha3 » 7.x-1.x-dev
StatusFileSize
new1.82 KB

In addition to #5, I wanted to turn on url validation as well. Patch attached to accomplish that for the 'skype' protocol. Don't expect it to be committed as there is #1318938: An all-embracing attempt for URL validation and Input / Output Form Filtering.

Leaving status as it is, as the original issue is solved. The patch is against the current dev. The used regex pattern could be made a bit more precise.