Oh, is that all?
Oct. 8th, 2007 02:11 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
A comment I made this morning, preserved for antiquity:
"Y'know, it's just: copy the query string, systematically go along it chopping out the '&' while remembering where the string starts, lexgraphically sorting the string (by the way, are you supposed to do the lexgraphical sort after it's been unescaped? (in which you case you'll get syntactically meaningless (not that we care for signature purposes) strings like equation=x=7) in which case the pain in the ass quotient goes up a notch) using QSort, then re-assembling the query info, escaping it, and assembling it with METHOD, SCHEME, HOSTINFO, and the other two data whose names I can't recall because they haven't even dropped onto my radar yet.
Because, y'know, strings like equation%3Dx%253D7 just kinda rock my world."
"Y'know, it's just: copy the query string, systematically go along it chopping out the '&' while remembering where the string starts, lexgraphically sorting the string (by the way, are you supposed to do the lexgraphical sort after it's been unescaped? (in which you case you'll get syntactically meaningless (not that we care for signature purposes) strings like equation=x=7) in which case the pain in the ass quotient goes up a notch) using QSort, then re-assembling the query info, escaping it, and assembling it with METHOD, SCHEME, HOSTINFO, and the other two data whose names I can't recall because they haven't even dropped onto my radar yet.
Because, y'know, strings like equation%3Dx%253D7 just kinda rock my world."