aboutsummaryrefslogtreecommitdiffstats
path: root/src/Angular.js
diff options
context:
space:
mode:
authorMisko Hevery2010-07-30 10:56:36 -0700
committerMisko Hevery2010-07-30 10:56:36 -0700
commitcdda664f8990351453baa26fc3dcd53329e72e68 (patch)
tree77cb533770c67d2a032a259bd093c3fa3a16899d /src/Angular.js
parentaf1eb6914e6e4b72e6baabb075138b7716184ff7 (diff)
downloadangular.js-cdda664f8990351453baa26fc3dcd53329e72e68.tar.bz2
fix up the $location encoding
Diffstat (limited to 'src/Angular.js')
-rw-r--r--src/Angular.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Angular.js b/src/Angular.js
index 33bf86ea..a6fc28b3 100644
--- a/src/Angular.js
+++ b/src/Angular.js
@@ -352,8 +352,8 @@ function parseKeyValue(keyValue) {
foreach((keyValue || "").split('&'), function(keyValue){
if (keyValue) {
key_value = keyValue.split('=');
- key = decodeURIComponent(key_value[0]);
- obj[key] = key_value[1] ? decodeURIComponent(key_value[1]) : true;
+ key = unescape(key_value[0]);
+ obj[key] = key_value[1] ? unescape(key_value[1]) : true;
}
});
return obj;
@@ -362,7 +362,7 @@ function parseKeyValue(keyValue) {
function toKeyValue(obj) {
var parts = [];
foreach(obj, function(value, key){
- parts.push(encodeURIComponent(key) + '=' + encodeURIComponent(value));
+ parts.push(escape(key) + '=' + escape(value));
});
return parts.length ? parts.join('&') : '';
}