Help save net neutrality! Learn more.
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
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

  • Sebastian Pipping

    • milestone: --> Git HEAD
    • assigned_to: nobody --> hartwork
     
  • Marc Novakowski

    Marc Novakowski - 2012-12-11

    Yes, it's working correctly now with your fix. Thanks!

     
  • Sebastian Pipping

    Cool, thanks. Closing as fixed.

     
  • Sebastian Pipping

    • status: open --> closed-fixed
     

Log in to post a comment.