WikiFormatter/TracLinks escapes too much
|Reported by:||Owned by:||Jonas Borgström|
The WikiFormatter is a bit too enthusiastic about escaping URLs used in TracLinks — specifically, I wanted to create a TracLink to the head revision of a file, and so wrote [source:path/to/file.java?rev=head My Link Text] in the description for the new ticket I was entering. It got escaped, so that the link was to
path/to/file.java%3Frev%3Dhead instead. That URL yields a 404 error, not the head revision of path/to/file.java.
I have also noticed that it always escapes ampersands, even when they're the prefix to an HTML character entity. In other words, I should be able to write [ and get a left square bracket. But what I get instead is &#91;.