projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
441bd24
)
luci-base: form.js: handle non-string values in stripTags()
author
Jo-Philipp Wich
<jo@mein.io>
Thu, 12 Sep 2019 08:49:04 +0000
(10:49 +0200)
committer
Jo-Philipp Wich
<jo@mein.io>
Thu, 12 Sep 2019 09:09:57 +0000
(11:09 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/form.js
patch
|
blob
|
history
diff --git
a/modules/luci-base/htdocs/luci-static/resources/form.js
b/modules/luci-base/htdocs/luci-static/resources/form.js
index 6692d52abf7c962be10242d747b3099ef68fa4fa..f0629d0ca798a6014abb27ec429942b2c304a696 100644
(file)
--- 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);