angular-ui / ui-router

The de-facto solution to flexible routing with nested views in AngularJS
http://ui-router.github.io/
MIT License
13.56k stars 3.01k forks source link

Maximum call stack size exceeded when query string param contains single quote/apostrophe #3704

Closed daviferreira closed 6 years ago

daviferreira commented 6 years ago

This is a (check one box):

My version of UI-Router is: 0.4.3

Bug Report

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 Behavior:

Single quotes should work fine as query string params.

Link to Plunker or stackblitz that reproduces the issue:

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)

daviferreira commented 6 years ago

Seems to be an angular 1.7.0 issue.