From 5dbcd9cf3f7ccdffab934840c5004e8db77ac73a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 10 Oct 2016 18:56:21 +0300 Subject: [PATCH] pass string to validator --- src/meta/errors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meta/errors.js b/src/meta/errors.js index 80a32fab44..7cc5bdade5 100644 --- a/src/meta/errors.js +++ b/src/meta/errors.js @@ -23,7 +23,7 @@ module.exports = function(Meta) { } data = data.map(function(nfObject) { - nfObject.value = escape ? validator.escape(nfObject.value) : nfObject.value; + nfObject.value = escape ? validator.escape(String(nfObject.value || '')) : nfObject.value; return nfObject; });