chriso/node-validator — Issue #42: prototypes
Author: Philmod
Created: 2011-11-01 16:42:16+00:00
State: open

Hello,

I define some prototypes in a file (array and string), and when this file is required, I have the next error while I do "sanitize(a).xss();" :

has no method 'split'
at Object.clean (/home/mod/modygo/node_modules/validator/lib/xss.js:102:42)
at [object Object].xss (/home/mod/modygo/node_modules/validator/lib/filter.js:32:21)
at Object. (/home/mod/modygo/temp.js:21:21)
at Module._compile (module.js:411:26)
at Object..js (module.js:417:10)
at Module.load (module.js:343:31)
at Function._load (module.js:302:12)
at Array. (module.js:430:10)
at EventEmitter._tickCallback (node.js:126:26)

Can you please help me?

Thanks,
Philippe