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

When commenting, and you write a URL in backticks, the http://www. part is cut off, and it is converted to a link. Converting it to a link might not be so bad, but cutting it off can change the meaning of the content as you usually put code in backticks.

I also accidentally came across a bug; there seems to be something strange going on with the characters after the URL. See my comments to this post. I entered the following in backticks:

header("Location: http://www.example.com/user/home.php");

Not completed!

See more bugs in comments to this question.

share|improve this question
    
See example: header("Location: http://www.example.com/user/home.php"); –  Blixt Jul 14 '09 at 16:14
    
There's also something funky going on with that semi-colon. I entered it as header(...); and I even tried removing the comment and re-adding it to make sure it wasn't an error on my side. –  Blixt Jul 14 '09 at 16:15
    
On a related (faintly related) subject: how do you get backticks to appear in text embedded in backticks? –  Jonathan Leffler Jul 14 '09 at 21:26
    
try using backslash like `ticks` versus un back-slashed ticks –  Jeff Atwood Jul 17 '09 at 4:27
    
Seeing if bug is still here: header("Location: example.com/user/home.php"); –  Blixt Jul 23 '09 at 18:54
    
Another bug: beta.multifarce.com/api/get_frame?frame=7001 note that that URL actually ends after "7001", yet its text ends with "7001/..." –  Blixt Aug 20 '09 at 11:58
1  
URL's in comments- You so crazy!!! –  jjnguy Aug 20 '09 at 13:57
    
header("Location: http://example.com/user/home.php";); –  Brad Gilbert Aug 20 '09 at 15:32
1  
header("Location: http://‎www.example.com/user/home.php"); –  random Oct 6 '09 at 11:24
    
Codified version: header("Location: http://‎www.example.com/user/home.php"); –  random Oct 6 '09 at 11:47

2 Answers 2

Ok this is now fixed; placing comment urls inside a code `` block makes them immune from being link-ified.

share|improve this answer
3  
not inside code block: example.com inside code block: http://www.example.com –  Jeff Atwood Nov 4 '09 at 8:49
    
Awesome! =) The two other URL bugs still remain though: header("Location: example.com/user/home.php"); and beta.multifarce.com/api/get_frame?frame=7001 –  Blixt Nov 4 '09 at 9:05
    
URL #1: semi-colon after " should not be there. URL #2: trailing /... should not be there. –  Blixt Nov 4 '09 at 9:06

Right now, to get the link to show in its entirety within the comments, you'll have to include some Unicode character that has no width, like a zero-width space, that will be taken out by the parser and breaks the URL at the same time.

header("Location: http://‏​www.example.com/user/home.php");

Which kind of looks like this:

header("Location: http://<hidden unicode>www.example.com/user/home.php");

Anybody with over 100 pastalicious rep points can just hit the edit and see what's being hidden in the "broken" URL for the comment.

To type the zero-width space: ALT + 8207 (This may not work on all systems. See a detailed description for Windows here.)

share|improve this answer
    
ALT + 8207 got me a beautiful ☼ –  perbert Oct 6 '09 at 18:27
    
@smeagol What keyboard are you using? –  random Oct 6 '09 at 23:48
    
@random: a beautiful Generic brand, Spanish distribution, 101 or 102 Compatible keyboard in Spanish setting on Windows 2000. This happens regardless of the set Language. I'm getting the feeling that it has something to do with the system really working with latin-1 instead of Unicode. –  perbert Oct 7 '09 at 12:52
    
I also got a ☼. –  mmyers Oct 7 '09 at 17:20
    
What is the latin version of the zero-width space? –  random Oct 8 '09 at 1:57

You must log in to answer this question.

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