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

fix(ngResource): don't append number to '$' in url param value when encoding URI #6004

Closed
wants to merge 1 commit into from

Conversation

caitp
Copy link
Contributor

@caitp caitp commented Jan 27, 2014

Previously, if a URL parameter value included a $, it would replace the dollar sign with a literal '$1' for mysterious reasons. Using a function rather than a replacement string circumvents this behaviour and produces a more expected result.

Closes #6003

@ghost ghost assigned chirayuk Jan 28, 2014
@caitp
Copy link
Contributor Author

caitp commented Jan 28, 2014

@chirayuk can I get you to go over a couple of these fixes this week?

@eranbo
Copy link

eranbo commented Feb 3, 2014

Hi,
I bumped into this '$' issue today.
I wonder if there is any fix for it? If not - I wonder how much time such fixes taking usually? Is there any change it'll fixed in the next week or so?

Thanks,
Eraan

@caitp
Copy link
Contributor Author

caitp commented Feb 3, 2014

@eranbo This pull request is a fix for this bug, but it needs to be reviewed by one of the team to get checked in. Maybe someone can get to it before we ship 1.2.11, but I'm not sure about that.

…ncoding URI

Previously, if a URL parameter value included a $, it would replace the dollar sign with a literal
'$1' for mysterious reasons. Using a function rather than a replacement string circumvents this
behaviour and produces a more expected result.

Closes angular#6003
@eranbo
Copy link

eranbo commented Feb 3, 2014

@caitp Thanks,
I found out that if sending $$ '1' is not added and the URL is changing to only one $.

@petebacondarwin
Copy link
Member

Lgtm. I think can merge this

@caitp caitp closed this in ce1f1f9 Feb 3, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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