diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2013-06-01 16:47:34 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2013-06-01 16:47:34 +0200 |
commit | bfcf113ce7e4293c955fd76e51e4515f29232b94 (patch) | |
tree | f84da55c5111be7cf676596a775ef4837be9b8ec /core | |
parent | 64c9fdcc28333c7310df8d9efb9040dbe3b4f8c8 (diff) | |
download | nextcloud-server-bfcf113ce7e4293c955fd76e51e4515f29232b94.tar.gz nextcloud-server-bfcf113ce7e4293c955fd76e51e4515f29232b94.zip |
Forgot typeof condition
Diffstat (limited to 'core')
-rw-r--r-- | core/js/octemplate.js | 4 |
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]); + } } } |