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


#1

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:

https://twitter.com/intent/tweet?original_referer=https%3A%2F%2Fthimble.mofostaging.net%2Fen-US%2Fproject%2F39163%2Fedit&text=Check%20out%20the%20%23Webmaker%20page%20I%20just%20made%3A%20&tw_p=tweetbutton&url=https%3A%2F%2Fthe_real_pomax.mywebmaker.org%2Fthimble%2Fyour-awesome-webpage-created-on-wed-mar-19-2014-943-pm&via=Webmaker

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!


#2

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


#3

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)


#4

Bump, what’s the progress on this issue?


#5

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


#6