Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#12 Parsing fails when URL ends with empty query parameter value

Git HEAD
closed-fixed
Parsing (9)
5
2012-12-17
2012-11-28
Marc Novakowski
No

Give a URL such as:

http://www.example.com/?q=hello&x=&y=

The uriDissectQueryMallocA function will parse the following key and value pairs:

"q" -> "hello"
"x" -> "" (empty string)
"y=" -> NULL

Notice that the key value is "y=" instead of "y" and the value is NULL instead of empty string.

Discussion

    • milestone: --> Git HEAD
    • assigned_to: nobody --> hartwork
     
  • Yes, it's working correctly now with your fix. Thanks!

     
  • Cool, thanks. Closing as fixed.

     
    • status: open --> closed-fixed