Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix creation of verification links [2.x] #3195

Merged
merged 1 commit into from
Feb 9, 2017

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.

None yet

1 participant