Hyuga | 23 Jun 21:16
Picon

[Trac-dev] URL hex encoding in Query.to_string()


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.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Development" group.
To post to this group, send email to trac-dev <at> googlegroups.com
To unsubscribe from this group, send email to trac-dev+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---


Gmane