summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-09-12 10:49:04 +0200
committerJo-Philipp Wich <jo@mein.io>2019-09-12 11:09:57 +0200
commit9be42e29e702c4b2c7d89e469a381204936ddf44 (patch)
treee51cdfcddd43748399367029d9ebfa0fbb676bd0 /modules/luci-base
parent441bd24d07aad3713d4bde175cc344ac7c82f5d8 (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')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/form.js2
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 6692d52ab..f0629d0ca 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);