angular.js icon indicating copy to clipboard operation
angular.js copied to clipboard

ngResource: '$' in pamater values are not escaped properly

Open tam4s opened this issue 12 years ago • 1 comments

1 liner demonstration in a browser JS console:

angular.injector(['ngResource']).get('$resource')('/search/:str').get({'str': 'hello$'}) GET http://docs.angularjs.org/search/hello$1 404 (Not Found)

Notice the extra '1' in the URL.

tam4s avatar Jan 27 '14 17:01 tam4s

Interesting, I've taken a stab at correcting this, would you care to try my patch and see if it introduces any regressions not caught by the tests?

caitp avatar Jan 27 '14 19:01 caitp