summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base
diff options
context:
space:
mode:
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 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);