|
|
@ -2,12 +2,12 @@ |
|
|
|
var logger = require('../src/logger'), |
|
|
|
var logger = require('../src/logger'), |
|
|
|
_sanitize = require('../sanitiser/_sanitize'), |
|
|
|
_sanitize = require('../sanitiser/_sanitize'), |
|
|
|
sanitiser = { |
|
|
|
sanitiser = { |
|
|
|
latlonzoom: require('../sanitiser/_latlonzoom'), |
|
|
|
latlonzoom: require('../sanitiser/_latlonzoom'), |
|
|
|
size: function( req ) { |
|
|
|
size: function( req ) { |
|
|
|
var size = require('../sanitiser/_size'); |
|
|
|
var size = require('../sanitiser/_size'); |
|
|
|
return size(req, 1); |
|
|
|
return size(req, 1); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
var sanitize = function(req, cb) { _sanitize(req, sanitiser, cb); } |
|
|
|
var sanitize = function(req, cb) { _sanitize(req, sanitiser, cb); } |
|
|
|
|
|
|
|
|
|
|
@ -24,4 +24,4 @@ module.exports.middleware = function( req, res, next ){ |
|
|
|
req.clean = clean; |
|
|
|
req.clean = clean; |
|
|
|
next(); |
|
|
|
next(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}; |
|
|
|
}; |
|
|
|