projects
/
project
/
luci2
/
ui.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
luci2.uci: don't allow set() with empty string values
[project/luci2/ui.git]
/
luci2
/
htdocs
/
luci2
/
uci.js
diff --git
a/luci2/htdocs/luci2/uci.js
b/luci2/htdocs/luci2/uci.js
index
2056ce9
..
c751de3
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)