This is a test related to my post on WordPress support forum (see below). You can ignore this message or read the comments in order to follow the results of this test.
Ampersands escaped in URLs within comments
On my blog (http://sig.levillage.org/) equipped with WordPress 0.72, when someone posts a comment containing an HTML link with an URL containing an ampersand, this URL gets mangled… Some characters (like the &) seem to be systematically escaped. IMO, this is a bug (not a feature). The escaping function should not escape ampersands in URL when the URL is a value of a tag attribute. What do you think ? Did I miss something ? Is there currently a workaroung ?
OK. Let’s go. Let’s suppose I want to make a link to query on Google. This query means I am searching for the word « wordpress » and I want the first 100 results to be displayed. The URL of this query is http://www.google.com/search?num=100&q=wordpress . Here is link I make to this URL. Are the ampersand properly escaped ?
Yes, they do. But why was this link to http://www.dmreview.com/master.cfm?Nav193&Ed7438 not handled properly as Vincent said in his comments ?
Wow, I must have not been fully awaked when I read Vincent comments ! Indeed, he did not say the ampersand characters were not properly handled. He rather noticed that the « I D = » substring of the URL he linked to unproperly disappeared (I had to add spaces between I D and = in order to make it appear here)! WordPress is nice with ampersands but definitely not with « I D = » in URLs. Wow, it appears that WordPress even suppresses « I D = » when it not within an URL.
Ping : AkaSig :: Les trackbacks dans Wordpress
Ping : AkaSig :: Les pingbacks dans Wordpress