From c642b44cdd615e021db81d98629afa7a5bd68050 Mon Sep 17 00:00:00 2001 From: "pabs@pablotron.org" Date: Fri, 19 Sep 2014 00:26:58 -0400 Subject: always coerce to string for FILTERS.h --- luigi-template.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luigi-template.js b/luigi-template.js index 439bbbe..cb67ebf 100644 --- a/luigi-template.js +++ b/luigi-template.js @@ -113,7 +113,7 @@ LuigiTemplate = (function() { if (v === undefined || v === null) return ''; - return (v || '').replace(/(['"<>&])/g, function(s) { + return v.toString().replace(/(['"<>&])/g, function(s) { return LUT[s]; }); }; -- cgit v1.2.3