mirror of
https://github.com/nextcloud/server.git
synced 2026-04-23 07:08:34 -04:00
Forgot typeof condition
This commit is contained in:
parent
64c9fdcc28
commit
bfcf113ce7
1 changed files with 3 additions and 1 deletions
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue