On 9/12/05, Dave Howorth <[EMAIL PROTECTED]> wrote: > The link is generated using this code from the macros template: > > MACRO link(table, command, additional, label) BLOCK; > SET lnk = base _ "/" _ table _ "/" _ command _ "/" _ additional; > lnk = lnk | uri | html; > '<a href="' _ lnk _ '">'; > label; > "</a>"; > END; > > Clearly the uri filter can't encode an =, because then it would also > encode the equal that separates the field name from the value.
If this is true, then I'd suggest that's a bug in the uri filter. It should be able to recognise that foo=baz=fuzz is a single key/value pair, just by keeping track of how many ='s have been seen. Using both a URI and HTML filter is surely wrong. The link macro is building a URL at that point, it should only be URI escaping. The thing that should be HTML-escaped is the label. You should be able to set up some easy to follow test cases by passing strings directly to the escape functions, rather than tracking it down through Maypole/TT templates. d. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Maypole-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/maypole-users
