projects
/
project
/
luci2
/
ui.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e463c1d
)
luci2.uci: don't allow set() with empty string values
author
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 13 Feb 2015 22:34:59 +0000
(23:34 +0100)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 13 Feb 2015 22:34:59 +0000
(23:34 +0100)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
luci2/htdocs/luci2/uci.js
patch
|
blob
|
history
diff --git
a/luci2/htdocs/luci2/uci.js
b/luci2/htdocs/luci2/uci.js
index 2056ce9094731a35c1b31172b940b073cf0e9105..c751de3cafc683d96e4b0079089127db180bc862 100644
(file)
--- a/
luci2/htdocs/luci2/uci.js
+++ b/
luci2/htdocs/luci2/uci.js
@@
-303,7
+303,7
@@
Class.extend({
else
delete n[conf][sid][opt];
}
- else if (typeof(val) != 'undefined')
+ else if (typeof(val) != 'undefined'
&& val !== ''
)
{
/* do not set within deleted section */
if (d[conf] && d[conf][sid] === true)