Skip to content

Conversation

@bajtos
Copy link
Member

@bajtos bajtos commented Feb 9, 2017

Description

Fix User.prototype.verify to call querystring.stringify instead
of concatenating query-string components directly.

In particular, this fixes the bug where options.redirect containing
a hash fragment like #/home?arg1=value1&arg2=value2 produced incorrect
URL, because the redirect value was not correctly encoded.

Related issues

Checklist

  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style
    guide

Fix User.prototype.verify to call `querystring.stringify` instead
of concatenating query-string components directly.

In particular, this fixes the bug where `options.redirect` containing
a hash fragment like `#/home?arg1=value1&arg2=value2` produced incorrect
URL, because the `redirect` value was not correctly encoded.
@bajtos bajtos self-assigned this Feb 9, 2017
@bajtos bajtos added the review label Feb 9, 2017
@bajtos bajtos changed the title Fix creation of verification links Fix creation of verification links [2.x] Feb 9, 2017
@bajtos bajtos merged commit 4278056 into 2.x Feb 9, 2017
@bajtos bajtos removed the review label Feb 9, 2017
@bajtos bajtos deleted the backport/fix-hash-path-in-redirect branch February 9, 2017 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants