express-sanitize-escape
Advanced tools
Comparing version 0.6.2 to 0.6.3
@@ -40,2 +40,15 @@ /*! | ||
module.exports.sanitizeParams = function(router, paramNames) | ||
{ | ||
paramNames.forEach(function(paramName) | ||
{ | ||
router.param(paramName, function(req, res, next) | ||
{ | ||
req.params[paramName] = sanitize(req.params[paramName]); | ||
next(); | ||
}); | ||
}); | ||
} | ||
function sanitize(obj) { | ||
@@ -42,0 +55,0 @@ if (typeof obj === 'string') { |
{ | ||
"name": "express-sanitize-escape", | ||
"description": "Express middleware for the sanitizer module using Caja's HTML Sanitizer and HTML escape using htmlencode.", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"author": "Justin Hamade <justin@fingerfoodstudios.com>", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/fingerfoodstudios/express-sanitize-esacpe", |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
9465
6
131
1
107