mirror of
https://github.com/Foltik/Shimapan
synced 2024-11-10 23:53:31 -05:00
Add hasOwnProperty checks to AuthSvc
This commit is contained in:
parent
86b7de2039
commit
bf2eb3b251
@ -9,6 +9,7 @@ angular.module('AuthSvc', []).service('AuthService', ['$http', '$window', functi
|
|||||||
transformRequest: function(obj) {
|
transformRequest: function(obj) {
|
||||||
var str = [];
|
var str = [];
|
||||||
for (var p in obj)
|
for (var p in obj)
|
||||||
|
if (obj.hasOwnProperty(p))
|
||||||
str.push(encodeURIComponent(p) + "=" + encodeURIComponent(obj[p]));
|
str.push(encodeURIComponent(p) + "=" + encodeURIComponent(obj[p]));
|
||||||
return str.join("&");
|
return str.join("&");
|
||||||
},
|
},
|
||||||
@ -36,6 +37,7 @@ angular.module('AuthSvc', []).service('AuthService', ['$http', '$window', functi
|
|||||||
transformRequest: function(obj) {
|
transformRequest: function(obj) {
|
||||||
var str = [];
|
var str = [];
|
||||||
for (var p in obj)
|
for (var p in obj)
|
||||||
|
if (obj.hasOwnProperty(p))
|
||||||
str.push(encodeURIComponent(p) + "=" + encodeURIComponent(obj[p]));
|
str.push(encodeURIComponent(p) + "=" + encodeURIComponent(obj[p]));
|
||||||
return str.join("&");
|
return str.join("&");
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user