Skip to content

Node.js based forum software built for the modern web

replaying changes from a150b2c6f70d6b22c46b1310f450318c3a7345f1

psychobunnyc52583ae28a3
diff --git a/public/src/templates.js b/public/src/templates.js
index 29c0d2787d..4d1b3edfbd 100644
--- a/public/src/templates.js
+++ b/public/src/templates.js
@@ -17,6 +17,7 @@
obj = registerGlobals(obj || {});
bind = bind ? Math.random() : false;
+ template = template.toString() || '';
if (bind) {
obj.__template = template;