Commit 1d0385f6 authored by Ilkka Myller's avatar Ilkka Myller Committed by James M Snell
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 0abdf59f
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