1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00
metamask-extension/app/scripts/lib/ens-ipfs
Mark Stacey 07cffe92c6
Fix ENS resolution of .eth URLs with query strings (#9674)
Our ENS resolver for the browser address bar was incorrectly resolving
addresses that included query strings. We were concatenating the `path`
property with the `search` property, despite the fact that the `path`
property already contains `search`. As a result, `search` was
duplicated in the resolved addresses.

For example, if an IPFS content ID was found for this address, the
resolved address for `metamask.eth/?foo=bar` would have the path
`/?foo=bar?foo=bar`

The original intent was likely to use `pathname` in place of `path`.
The resolver has been updated to use `pathname`, and the query string
now appears only once in the resolved address.
2020-10-22 10:45:26 -02:30
..
contracts Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
resolver.js Update ESLint shared config to v3 (#9274) 2020-08-19 13:57:05 -02:30
setup.js Fix ENS resolution of .eth URLs with query strings (#9674) 2020-10-22 10:45:26 -02:30