postrank-labs / postrank-uri

URI normalization, c14n, escaping, and extraction
MIT License
301 stars 52 forks source link

Clean breaks query values containing %26 #28

Closed rwz closed 7 years ago

rwz commented 10 years ago
PostRank::URI.clean("http://example.com?foo=BAR%26BAZ")
# => "http://example.com/?foo=BAR&BAZ"

As you can see, clean method has unescaped %26 code in the value and transformed a single key-value query pair into two keys and one value. Expected result would be http://example.com/?foo=BAR%26BAZ