hi chris,

thanks for considering fixing this.

in latest 1.0.4beta, i made an href link with tg.url as follows:

<?python
id = 'a+b'
?>
${tg.url('/edit?id='+id)}

clicking on the link, this translated to "a b".
to avoid that, i have manualy replaced '+' with '%2b'.

best regards,

alex

Christoph Zwerschke wrote:
> alex bodnaru schrieb:
>> i suspect i found a bug in tg.url:
>>
>> having to pass a string containing a '+', i've got it converted to ' '
>> instead of '%2b', in order to pass it with '+' to the controller.
>>
>> please your opinions,
> 
> Which version? Were you passing the string with the '+' as the path or 
> in one of the query parameters?
> 
> I think tg.url is ok. The path is left as it is (it is assumed that it 
> is already a valid URL), and query parameters are quoted.
> 
> -- Chris
> 
> > 
> 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to