Commit 96cfa926 authored by Ilkka Myller's avatar Ilkka Myller Committed by Myles Borins
Browse files

url: `url.format()` encodes all `#` in `search`

This commit fixes an error where only the first occurrence of `#` in
`search` parameter is URL encoded, and subsequent occurrences are not.

Also added a test for the case.

Fixes: https://github.com/nodejs/node/issues/8064
PR-URL: https://github.com/nodejs/node/pull/8072


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent 3a3fde69
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment