URL hex encoding in Query.to_string()

0 views
Skip to first unread message

Hyuga

unread,
Jun 23, 2009, 3:16:59 PM6/23/09
to Trac Development
I asked about this a little while ago in IRC, but it seems pretty dead
right now, so figure I'll ask here too.

When I save a custom query containing a filter such as "summary=~foo",
it's displayed in the save report page as "summary=%7Efoo". I know
that this is due to Query.to_string() just being a thin wrapper around
Query.get_href(). But I thought that at least this was fixed a long
time ago. Is this a regression, or was it never fixed?

I simply modified my to_string to wrap the call to self.get_href() in
unicode_unquote(). That solves the problem nicely, and doesn't seem
to have any adverse effects.

You'd think there'd be a ticket addressing this somewhere, but I
couldn't find one.
Reply all
Reply to author
Forward
0 new messages