Skip to content

Commit 661296c

Browse files
committed
Fixed so that functions are not serialized in URL encoding.
1 parent 519c8de commit 661296c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

userapp.client.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ UserApp.Transport.encodeArguments = function(source, prefix, skipIndex){
2828
var result = [];
2929

3030
for(var index in source){
31+
if(typeof source == "object" && !source.hasOwnProperty(index)){
32+
continue;
33+
}
34+
3135
var value = source[index];
3236
var key = prefix ? prefix + "[" + index + "]" : index;
3337

@@ -981,4 +985,4 @@ UserApp.OAuth.Provider.save = function(arguments, callback){
981985

982986
UserApp.OAuth.Provider.prototype.save = function(callback){
983987
UserApp.OAuth.Provider.save(callback);
984-
};
988+
};

0 commit comments

Comments
 (0)