Links with special characters are ignored

ressa - November 9, 2009 - 08:30
Project:External Links
Version:6.x-1.8
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

They don't get picked up the module -- try for example http://sandlådan.nu

#1

quicksketch - November 9, 2009 - 16:07

Hm, http://sandlådan.nu, is not a valid URL, so I'm not understanding why it should work.

#2

Bart Jansens - November 9, 2009 - 16:15

This really is a valid domain name, welcome to world of IDN (http://en.wikipedia.org/wiki/Internationalized_domain_name)

FYI, core issues on this subject: http://drupal.org/project/issues/search/drupal?issue_tags=IDN

#3

quicksketch - November 9, 2009 - 17:36

Ah, I wasn't aware that those domains had actually come into practical usage yet. Oddly I don't think that Extlink actually is dependent on the characters in the URL at all. It does some basic matching on the top-level domain name itself ("nu" in your example), but it doesn't care at all what's in the rest of the name.

Doing a practical test, I can't actually reproduce a problem. I've entered this into the body area of a post:

<a href="http://sandlådan.nu">http://sandlådan.nu</a>

And it shows up appropriately on output with the extlink class and icon. Note that it's not this module's fault that just "http://sandlådan.nu" is not automatically converted to a URL, that's the core URL Filter that's not picking it up.

#4

ressa - November 9, 2009 - 21:45

Thanks for the answers, I am glad to see that people are working on the case in core.

 
 

Drupal is a registered trademark of Dries Buytaert.