[bug] URL with underscores in subdomain not valid in Tweet Intent


Hi there, I think I’ve found a bug in the URL validator used in the Tweet Intent.

If you try to tweet a URL like https://the_real_pomax.mywebmaker.org/thimble/your-awesome-webpage-created-on-wed-mar-19-2014-943-pm with the following tweet intent url:


You’ll see that the URL doesn’t appear. If you remove the underscores from the url in that tweet intent url, then the URL will appear.

I’d love to see this bug fixed. Thanks!


Your URL is invalid. Domains (A records) can only contain digits (0-9), letters (a-z), and hyphens (-), and dots (.). http://tools.ietf.org/html/rfc1123#page-13


That RFC has been superceded by http://www.ietf.org/rfc/rfc2181.txt – From section 11, “Name syntax”:

“The DNS itself places only one restriction on the particular labels that can be used to identify resource records. That one restriction relates to the length of the label and the full name. […] Implementations of the DNS protocols must not place any restrictions on the labels that can be used. In particular, DNS servers must not refuse to serve a zone because it contains labels that might not be acceptable to some DNS client programs.”

(this was raised on SO a while ago as http://stackoverflow.com/questions/2180465/can-someone-have-a-subdomain-with-an-underscore-in-it)


Bump, what’s the progress on this issue?


Has this issue been touched? http://tools.ietf.org/html/rfc2181