Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix gh #157

  • Loading branch information...
commit 5af1217c5ef5b4bbcd79769a9457075639326769 1 parent ee1e703
@ericz ericz authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/user.js
View
9 lib/user.js
@@ -81,6 +81,15 @@ exports.initialize = function (nowjs) {
theFunction = self.get(data.fqn);
}
var args = data.args;
+
+ if (typeof args.length !== 'number' ||
+ args.propertyIsEnumerable('length') ||
+ typeof args.splice !== 'function')
+ {
+ throw new Error('RFC with bad type');
+ return;
+ }
+
// Convert any remote function stubs into remote functions
var user;
for (var i = 0, ll = args.length; i < ll; i++) {
Please sign in to comment.
Something went wrong with that request. Please try again.