[Trac-tickets] [The Trac Project] #1805: WikiFormatter/TracLinks escapes too much

The Trac Project noreply at edgewall.com
Tue Jul 19 16:35:44 CDT 2005


#1805: WikiFormatter/TracLinks escapes too much
--------------------+-------------------------------------------------------
       Id:  1805    |      Status:  new                     
Component:  wiki    |    Modified:  Tue Jul 19 16:35:44 2005
 Severity:  normal  |   Milestone:                          
 Priority:  normal  |     Version:  0.8.4                   
    Owner:  jonas   |    Reporter:  clh at caltech.edu         
--------------------+-------------------------------------------------------
 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 &!#91; and get a left square bracket. But what I get instead is
 &!#91;.

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/1805>
The Trac Project <>


More information about the Trac-Tickets mailing list