-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Maximum call stack size exceeded when query string param contains single quote/apostrophe #16592
Comments
Since this is sitting on top of ui-router, which is a 3rd party library, I would ask that you check with them that it is not an issue with that library first. You can prove it is not by providing a reproduction that doesn't include ui-router. At first sight I wonder if you should be responsible for encoding queries before passing them as params? |
Since the stack trace had no reference to ui-router and since it used to work on previous versions of Angular, I just assumed it was an issue here. But I will try to reproduce it without ui-router, thanks! |
Here is a reproduction with angular only, using the router example from the docs: https://plnkr.co/edit/YAht5awDIZuLmMuyv1vj?p=preview Happens with both normal (') and encoded (%27). |
I am facing this issue too! I think it's similar to what's reported in #16100 and it could be solved by this commit jbedard@b0e5ac6. |
This issue is preventing us from upgrading angularjs to 1.7. Please fix it |
Anyone have an example of how this could be reproduced in a unit test? |
Not really, but if you go to angular docs you can also reproduce it. |
Some notes:
|
…aracters Some characters are treated differently by $location compared to $browser and the native browser. When comparing URLs across these two services this must be taken into account. Fixes angular#16592
…aracters Some characters are treated differently by `$location` compared to `$browser` and the native browser. When comparing URLs across these two services this must be taken into account. Fixes angular#16592
…aracters Some characters are treated differently by `$location` compared to `$browser` and the native browser. When comparing URLs across these two services this must be taken into account. Fixes angular#16592 Closes angular#16611
…aracters Some characters are treated differently by `$location` compared to `$browser` and the native browser. When comparing URLs across these two services this must be taken into account. Fixes angular#16592 Closes angular#16611
|
Looking forward to a new release 👍 |
A new release to get this issue fixed would be much appreciated |
We just released 1.7.3 with the fix |
Amazing. Thanks a lot. |
I'm submitting a ...
Current behavior:
When you have a single quote as a value for a query string param, angular-ui-router goes into an infinite loop.
Expected / new behavior:
Single quotes should work fine as query string params.
Minimal reproduction of the problem with instructions:
https://plnkr.co/edit/B2uRltFHZd4IP8XcHlTd?p=preview
(enter a single quote in the search field and click search and check the console - note that your browser/tab might become unresponsive)
AngularJS version: 1.7.0
(works fine on 1.6.x)
Browser: all
Anything else:
The text was updated successfully, but these errors were encountered: