diff options
| author | Andrew McLeod | 2013-02-25 21:25:18 -0800 |
|---|---|---|
| committer | Igor Minar | 2013-02-26 17:29:08 -0800 |
| commit | b13da18e11d5f67696906d1ecd2fc9e753d50da4 (patch) | |
| tree | e3dbb159ec82c59d290b68a541078fa85a6ffdaf /src/Angular.js | |
| parent | f98f8a3892874382efbd42eded01c94c76188e56 (diff) | |
| download | angular.js-b13da18e11d5f67696906d1ecd2fc9e753d50da4.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 5195489e..93e4f6af 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -855,7 +855,7 @@ function encodeUriQuery(val, pctEncodeSpaces) { replace(/%3A/gi, ':'). replace(/%24/g, '$'). replace(/%2C/gi, ','). - replace((pctEncodeSpaces ? null : /%20/g), '+'); + replace(/%20/g, (pctEncodeSpaces ? '%20' : '+')); } |
