|
|
@ -6,12 +6,6 @@ var sanitizeAll = require('../sanitizer/sanitizeAll'), |
|
|
|
private: require('../sanitizer/_flag_bool')('private', false) |
|
|
|
private: require('../sanitizer/_flag_bool')('private', false) |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
var sanitize = sanitizeAll.runAllChecks; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// export sanitize for testing
|
|
|
|
|
|
|
|
module.exports.sanitize = sanitize; |
|
|
|
|
|
|
|
module.exports.sanitizer_list = sanitizers; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// middleware
|
|
|
|
// middleware
|
|
|
|
module.exports.middleware = function(req, res, next){ |
|
|
|
module.exports.middleware = function(req, res, next){ |
|
|
|
sanitizeAll.runAllChecks(req, sanitizers); |
|
|
|
sanitizeAll.runAllChecks(req, sanitizers); |
|
|
|