Encodeurl Versions Save

Encode a URL to a percent-encoded form, excluding already-encoded sequences

v2.0.0

1 month ago

Changed

  • Align encoding with WHATWG URL spec (#8) be0f77b
    • Stops encoding \, ^, and |.

Important: If you are using this to encode user entered and validated URLs, upgrade to v2 immediately. It is possible to exploit \ encoding in v1. A URL can be formed that looks like http://foo.com\@bar.com, which parses as foo.com for the host, but when encodeUrl(url) will parse as bar.com for the host.

https://github.com/pillarjs/encodeurl/compare/v1.0.2...v2.0.0

v1.0.2

6 years ago
  • Fix encoding % as last character

v1.0.1

7 years ago
  • Fix encoding unpaired surrogates at start/end of string

v1.0.0

7 years ago
  • Initial release