summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/js/octemplate.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/js/octemplate.js b/core/js/octemplate.js
index 352a23c4dc7..e69c6cc56e0 100644
--- a/core/js/octemplate.js
+++ b/core/js/octemplate.js
@@ -61,7 +61,9 @@
if(typeof this.options.escapeFunction === 'function') {
for (var key = 0; key < this.vars.length; key++) {
- this.vars[key] = self.options.escapeFunction(this.vars[key]);
+ if(typeof this.vars[key] === 'string') {
+ this.vars[key] = self.options.escapeFunction(this.vars[key]);
+ }
}
}