diff options
| author | Andrew McLeod | 2013-02-25 21:25:18 -0800 | 
|---|---|---|
| committer | Igor Minar | 2013-02-26 17:25:15 -0800 | 
| commit | 86d191ed4aea9015adc71b852223475c5c762c34 (patch) | |
| tree | 2d07565c9be92371890595c5dcce5071cef9d53f /src/Angular.js | |
| parent | c38c1c503074af1b0aae7498b9381cb90cd63958 (diff) | |
| download | angular.js-86d191ed4aea9015adc71b852223475c5c762c34.tar.bz2 | |
fix($http): don't encode URL query substring "null" to "+"
Fixes issue in encodeUriQuery used by $http and $resource that
treats null as a string and replaces the characters "null" with "+".
Diffstat (limited to 'src/Angular.js')
| -rw-r--r-- | src/Angular.js | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/Angular.js b/src/Angular.js index 6ea5d1ad..5de57075 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -875,7 +875,7 @@ function encodeUriQuery(val, pctEncodeSpaces) {               replace(/%3A/gi, ':').               replace(/%24/g, '$').               replace(/%2C/gi, ','). -             replace((pctEncodeSpaces ? null : /%20/g), '+'); +             replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));  } | 
