Re: [Catalyst] Automatically uri_unescape parameters
Ashley wrote: On Mar 17, 2008, at 1:53 PM, Alex Povolotsky wrote: So far I can tell only that SOMETIMES it does not escape it properly. I'm heavily pressed by missing deadline, but I'll make a test case and send it to you. This sounds like you are double encoding URIs in some situations without realizing it. Hmm... I do not. Maybe implicitly, with Chain? No, Chain works well. I promise to do a test case. Alex. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Automatically uri_unescape parameters
On Mar 17, 2008, at 1:53 PM, Alex Povolotsky wrote: So far I can tell only that SOMETIMES it does not escape it properly. I'm heavily pressed by missing deadline, but I'll make a test case and send it to you. This sounds like you are double encoding URIs in some situations without realizing it. -Ashley ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Automatically uri_unescape parameters
Jonathan Rockway wrote: * On Mon, Mar 17 2008, Stef T wrote: Hello Alex, I would assume that if Catalyst-Plugin-HTML-Scrubber-0.01 doesn't do what you want, it will probably point you in the right direction ;) You could probably also do this using the DBIx inflate_column I dare say. I don't think this is what he is talking about. If it is, the module he is looking for is URI::Escape. If he's talking about unescaping the querystring, that should be handled by Catalyst and if something is going wrong, a failing test case would be appreciated. So far I can tell only that SOMETIMES it does not escape it properly. I'm heavily pressed by missing deadline, but I'll make a test case and send it to you. Alex. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Automatically uri_unescape parameters
On Mon, Mar 17, 2008 at 4:05 PM, Jonathan Rockway <[EMAIL PROTECTED]> wrote: > * On Mon, Mar 17 2008, Stef T wrote: > > Hello Alex, > >I would assume that if Catalyst-Plugin-HTML-Scrubber-0.01 doesn't > > do what you want, it will probably point you in the right direction ;) > > > >You could probably also do this using the DBIx inflate_column I > > dare say. > > I don't think this is what he is talking about. If it is, the module he > is looking for is URI::Escape. > > If he's talking about unescaping the querystring, that should be handled > by Catalyst and if something is going wrong, a failing test case would > be appreciated. > I think the question is not for the query string but if its passed in the URI, which is probably really bad form to pass things with spaces and such, but sometimes you have to deal with legacy code before its fixed the right way by moving it out to the query string. Something like this, where $thing has spaces, needs specific escaping, which is kind of a pain: sub bleh : Local { my ( $self, $c, $thing ) = @_; $thing = uri_unescape($thing); # this is necessary if it has spaces, etc } Thanks, John ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Automatically uri_unescape parameters
* On Mon, Mar 17 2008, Stef T wrote: > Hello Alex, >I would assume that if Catalyst-Plugin-HTML-Scrubber-0.01 doesn't > do what you want, it will probably point you in the right direction ;) > >You could probably also do this using the DBIx inflate_column I > dare say. I don't think this is what he is talking about. If it is, the module he is looking for is URI::Escape. If he's talking about unescaping the querystring, that should be handled by Catalyst and if something is going wrong, a failing test case would be appreciated. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Automatically uri_unescape parameters
Alex Povolotsky wrote: Hello! Do we have some way to automatically uri_unescape parameters passed to handlers? Alex. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ Hello Alex, I would assume that if Catalyst-Plugin-HTML-Scrubber-0.01 doesn't do what you want, it will probably point you in the right direction ;) You could probably also do this using the DBIx inflate_column I dare say. Regards Stef ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] Automatically uri_unescape parameters
Hello! Do we have some way to automatically uri_unescape parameters passed to handlers? Alex. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/