Menu

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

0.7.8
closed-fixed
Parsing (9)
5
2018-01-06
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
     
  • Sebastian Pipping

    • Group: Git HEAD --> 0.7.8
     

Log in to post a comment.