xehonu / skipfish

Automatically exported from code.google.com/p/skipfish
Apache License 2.0
0 stars 0 forks source link

parse url error #96

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
when come up with url like 
"http://www.example.com/mypag/default.html?userid=149617087&user=oracle11am&ex=4
7,7,1523,170,1&str=hello"

field "ex=47,7,1523,170,1" was parsed to (k,v)s: (ex, 47), (NULL, 7), (NULL, 
1523)...

It's not valid I think. Am i right?

Original issue reported on code.google.com by idc...@gmail.com on 25 Oct 2010 at 8:57

GoogleCodeExporter commented 8 years ago
It's meant to be parsed this way, are you dealing with any specific problem 
here?

Original comment by lcam...@gmail.com on 25 Oct 2010 at 4:08

GoogleCodeExporter commented 8 years ago
!! I thought that (n,v)s in req->par should match exactly what I got in php 
$_GET[], but it seams that I was wrong.

Thanks a lot.

Original comment by idc...@gmail.com on 26 Oct 2010 at 1:49

GoogleCodeExporter commented 8 years ago
Nah, it splits them this way because , is one of the common URL value 
separators, and it wants to fuzz every bit individually; n=NULL simply means 
that this parameter has no name, only a fuzzable value (non-NULL n is output as 
"n=v", while NULL is simply stored as "v").

Original comment by lcam...@gmail.com on 26 Oct 2010 at 3:10