What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 133 Stack Exchange communities.

In my third comment to this Stack Overflow question, I put in (one explicit, manually formatted link) and two URLs to other SO questions. Since the amount of characters in a comment is quite limited, and since I had to squeeze three links into that comment, I shortened these links to http://stackoverflow.com/questions/<ID>. (One of them has a superfluous / at the end.)
For reasons I don't understand, markdown failed to turn them into links. Note that markdown did not fail on marking code.

I have checked both links to be valid by copy-pasting them into my browser's address bar. There's nothing wrong with them.
I have also tried these links in test comments (which I deleted afterwards), and they both work fine there. Another test revealed that the sentence that contains them ("I've tagged http://stackoverflow.com/questions/210616/ and http://stackoverflow.com/questions/2785612 as c++-faq."), posted as its own comment, will have the URLs turned into links, too.

What could I have done wrong to make this fail?

share|improve this question
2  
Just a note, you can shorten the URL further by using stackoverflow.com/q/210616 –  Barry Nov 17 '10 at 12:00
    
@Barry: http://stackoverflow.com/q/210616: stackoverflow.com/q/210616. Thanks, I didn't know that! –  sbi Nov 17 '10 at 12:02
    
Wizz bang magical features strip out the www. gubbins for display purposes. –  Barry Nov 17 '10 at 12:04
1  
@Barry: SO doesn't have www. –  sbi Nov 17 '10 at 12:13

1 Answer 1

up vote 3 down vote accepted

By design. You can no longer mix raw and markdown URLs in the same comment.

Pick one way or the other per comment and stick to it.

With the recent addition of magic links, this was becoming unfeasible, hence we've spent some time to have a better way for fixing this vulnerability. So after the next build, multiple link styles in comments work again.

share|improve this answer
    
Thanks for pointing this out. Is there a rationale to this? Because, by default, I'd question a design decision that nobody is able to figure out for 13 hours until the site owner comes and explains it. –  sbi Nov 18 '10 at 8:27
    
@sbi there was an exploit based on inappropriate mixing of URL parsers. It's a really odd thing to do on top of that IMHO; what is the valid use case for mixing markup styles in a comment? –  Jeff Atwood Nov 18 '10 at 8:30
    
I guess I can't argue with preventing exploits. :) Thanks for explaining! –  sbi Nov 18 '10 at 8:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .