|
|
@ -3,7 +3,6 @@ var query_parse= require('../helper/query_parser'); |
|
|
|
|
|
|
|
|
|
|
|
// validate inputs, convert types and apply defaults
|
|
|
|
// validate inputs, convert types and apply defaults
|
|
|
|
function sanitize( req ){ |
|
|
|
function sanitize( req ){ |
|
|
|
|
|
|
|
|
|
|
|
req.clean = req.clean || {}; |
|
|
|
req.clean = req.clean || {}; |
|
|
|
var params= req.query; |
|
|
|
var params= req.query; |
|
|
|
|
|
|
|
|
|
|
@ -24,9 +23,7 @@ function sanitize( req ){ |
|
|
|
|
|
|
|
|
|
|
|
req.clean.parsed_input = query_parse(params.input); |
|
|
|
req.clean.parsed_input = query_parse(params.input); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return { 'error': false }; |
|
|
|
return { 'error': false }; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// export function
|
|
|
|
// export function
|
|
|
|