lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

It was thus said that the Great Sean Conner once stated:
> It was thus said that the Great Luiz Henrique de Figueiredo once stated:
> > >           query = "q=foo%20bar&lang=en",
> > 
> > Shouldn't query be a table?
> > 
> > query = { q = "foo bar", lang = "en" }
> > 
> > Or are there helper functions for that?
>   It used to be decoded into a table, but there were issues doing that
> related to CGI scripts (as defined in RFC-3875) where the following is
> legal:
> (RFC-3875, section 4.4). 

  Oh, and one other reason related to CGI---the CGI script is expecting an
undecoded query string, which meant re-serializing a parsed table back into
a string.  That also influenced my decision---to avoid parsing data that
wasn't going to be used parsed.