Closed fsargent closed 10 years ago
+1 I am also having the same issue. Every time while accessing a spread sheet, this error throws up.
Hmm it seems that the sanitize object doesn't know about the xss() method (used to strip common xss attacks). Can you send me the output of npm list as well as your node.js version? And can you give me the steps to reproduce this error?
ah it seems that in newer versions of the validator package, the xss filter has been removed in favor of the more secure 'escape' filter. I will fix this issue today.
Fixed in commit latest for es_command and the latest commit for es_client. Please pull updates of both of those repositories to get this fix.
Gotta fix that trailing comma in es_command :)
TypeError: Object [object Object] has no method 'xss' at Function.Command.sanitize (/usr/local/lib/node_modules/es_command/es_command.js:22:32) at Object.Command.initWithString (/usr/local/lib/node_modules/es_command/es_command.js:35:35) at Object.module.exports (/usr/local/lib/node_modules/es_command/es_command.js:14:10) at null.transaction_handler (/data/EtherSheet/lib/server.js:101:13) at SockJSConnection. (/data/EtherSheet/transactor/transactor.js:30:11)
at SockJSConnection.EventEmitter.emit (events.js:95:17)
at Session.didMessage (/data/EtherSheet/node_modules/sockjs/lib/transport.js:220:25)
at App.exports.app.xhr_send (/data/EtherSheet/node_modules/sockjs/lib/trans-xhr.js:81:15)
at execute_request (/data/EtherSheet/node_modules/sockjs/lib/webjs.js:21:38)
at req.next_filter (/data/EtherSheet/node_modules/sockjs/lib/webjs.js:95:18)