Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

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

Closed
@daviferreira

Description

@daviferreira

I'm submitting a ...

  • bug report
  • feature request
  • other

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:

angular.js:14996 RangeError: Maximum call stack size exceeded
    at m.$digest (angular.js:18537)
    at angular.js:14776
    at angular.js:6659
    at q (angular.js:374)
    at tg.k [as $$checkUrlChange] (angular.js:6658)
    at m.$digest (angular.js:18625)
    at angular.js:14776
    at angular.js:6659
    at q (angular.js:374)
    at tg.k [as $$checkUrlChange] (angular.js:6658)
(anonymous) @ angular.js:14996
(anonymous) @ angular.js:11280
$apply @ angular.js:18925
(anonymous) @ angular.js:28069
lg @ angular.js:3780
d @ angular.js:3768

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions