perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Stevens <michael.stev...@dianomi.com>
Subject Re: handling query strings with ? in
Date Fri, 03 May 2013 13:38:13 GMT
Yes, I think the CGI.pm behaviour is good, and would like it if Embperl was
the same.


On 3 May 2013 14:36, Gerald Richter - ECOS <richter@ecos.de> wrote:

> > Is there anything that can be done to make embperl behave more as
> expected?****
>
> ** **
>
> What is what you would expect? I think the way CGI.pm is correct regarding
> the specs. Is that what you would expect?****
>
> ** **
>
> Gerald****
>
> ** **
>
> ** **
>
> *Von:* Michael Stevens [mailto:michael.stevens@dianomi.com]
> *Gesendet:* Freitag, 3. Mai 2013 15:05
> *An:* embperl@perl.apache.org
> *Betreff:* handling query strings with ? in****
>
> ** **
>
> Hi.****
>
> ** **
>
> We're trying to handle some odd query strings in embperl, eg:****
>
> ** **
>
> http://www.example.com/mjs/q.epl?a=b?c=d
> ****
>
> ** **
>
> embperl parses this as:****
>
> ** **
>
> Using %fdat****
>
> Field****
>
> Value****
>
> a b?c****
>
> d****
>
> ** **
>
> CGI.pm parses this as:****
>
> ** **
>
> Using CGI.pm****
>
> Field****
>
> Value****
>
> a****
>
> b?c=d****
>
> ** **
>
> I agree that these are some pretty bizarre queries, but annoyingly we
> can't change the source, and embperl seems to handle them pretty badly.
> Googling suggests ? in a query string is probably valid, eg:****
>
> ** **
>
>
> http://www.456bereastreet.com/archive/201008/what_characters_are_allowed_unencoded_in_query_strings/
> ****
>
> ** **
>
> Is there anything that can be done to make embperl behave more as expected?
> ****
>
> ** **
>
> -- ****
>
> Michael Stevens****
>
> Dianomi Ltd
> 18 Buckingham Gate
> London SW1E 6LB
>
> Tel: 020 3463 5662
> Fax: 020 7630 7356
> www.dianomi.com
>
> The information in this message and any attachment is intended for the
> addressee and is confidential and may be subject to legal privilege.
> Dianomi Ltd, Registered Office: One America Square, Crosswall, London. EC3N
> 2SG. Registered in England and Wales with Company Registration Number
> 4513809. VAT registration number: 809754988 ****
>



-- 
Michael Stevens
Dianomi Ltd
18 Buckingham Gate
London SW1E 6LB

Tel: 020 3463 5662
Fax: 020 7630 7356
www.dianomi.com

The information in this message and any attachment is intended for the
addressee and is confidential and may be subject to legal privilege.
Dianomi Ltd, Registered Office: One America Square, Crosswall, London. EC3N
2SG. Registered in England and Wales with Company Registration Number
4513809. VAT registration number: 809754988

Mime
View raw message