[Opa] UriParser doesn't handle non-key-value query strings

Adam Koprowski Adam.Koprowski at mlstate.com
Fri Jan 27 13:25:51 UTC 2012


   Dear Owen,

  Thanks for the report (this and the following one). As Rudy replied to
the other one, we'll try to work on a patch; if you want to submit one
yourself you're of course more than welcome :).

  Best,
  Adam

On Thu, Jan 26, 2012 at 23:41, Owen Gunden <ogunden at phauna.org> wrote:

> This parses:
>
> http://www.foo.com/foo/bar?baz=quux
>
> But this does not:
>
> http://www.foo.com/foo/bar?baz
>
> Per the rfc, there's no requirement that the query string be in
> key/value format: http://tools.ietf.org/html/rfc3986#section-3.4
>
>
> You're going to ask for a patch, right?
>
> Patching this seems like it requires a type change through to the
> interface so I'm not sure how badly you want that change. Right now we
> have:
>
>                 ; query : list((string,string))
>
> which I would replace with
>
>                ; query : query
>
> and
>
>  type query = { empty } / { key_value_pairs:list((string,string)) } /
> { plain:string }
> _______________________________________________
> Opa mailing list
> Opa at lists.owasp.org
> https://lists.owasp.org/mailman/listinfo/opa
>



-- 
*Adam Koprowski                [http://adam-koprowski.net]
Opa Tech Evangelist @ MLstate [http://opalang.org | http://mlstate.com]*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.owasp.org/pipermail/opa/attachments/20120127/082ae40e/attachment.html>


More information about the Opa mailing list