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

Pluses get replaced with spaces #30

Open
MaximBalaganskiy opened this issue May 4, 2019 · 2 comments
Open

Pluses get replaced with spaces #30

MaximBalaganskiy opened this issue May 4, 2019 · 2 comments

Comments

@MaximBalaganskiy
Copy link

MaximBalaganskiy commented May 4, 2019

I'm submitting a bug report

  • Library Version:
    1.1.3

Please tell us about your environment:

  • Operating System:
    Windows 10

  • Node Version:
    8.9.4

  • NPM Version:
    6.9.0

  • JSPM OR Webpack AND Version
    webpack 4.30.0

  • Browser:
    all

  • Language:
    all

Current behavior:
Passing + in a url parameter results in an argument to activate function where + is replaced with [space]

Expected/desired behavior:

  • What is the expected behavior?
    + is passed as is

  • What is the motivation / use case for changing the behavior?
    Previously, a path would be passed unencoded which correctly translated to view parameters. Now, when the + appears in the path, the line

    let pairs = query.replace(/\+/g, ' ').split('&');
    replaces it with a space.
    This breaks scenarios with Asp.Net Identity password reset codes for example.

@MaximBalaganskiy
Copy link
Author

@thomas-darling
Copy link

This is a major problem when encoding ISO date strings, where the UTC offset is specified with a plus or minus sign...
A fix for it would be much appreciated 🙂

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 a pull request may close this issue.

2 participants