diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-09-12 10:49:04 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-09-12 11:09:57 +0200 |
commit | 9be42e29e702c4b2c7d89e469a381204936ddf44 (patch) | |
tree | e51cdfcddd43748399367029d9ebfa0fbb676bd0 /modules/luci-base/htdocs | |
parent | 441bd24d07aad3713d4bde175cc344ac7c82f5d8 (diff) |
luci-base: form.js: handle non-string values in stripTags()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/htdocs')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/form.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js index 6692d52abf..f0629d0ca7 100644 --- a/modules/luci-base/htdocs/luci-static/resources/form.js +++ b/modules/luci-base/htdocs/luci-static/resources/form.js @@ -52,7 +52,7 @@ var CBINode = Class.extend({ }, stripTags: function(s) { - if (!s.match(/[<>]/)) + if (typeof(s) == 'string' && !s.match(/[<>]/)) return s; var x = E('div', {}, s); |