From 5386380462b2ccbb58d5ec5b9a2b19c934525b84 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 13 Feb 2015 23:34:59 +0100 Subject: luci2.uci: don't allow set() with empty string values Signed-off-by: Jo-Philipp Wich --- luci2/htdocs/luci2/uci.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'luci2') diff --git a/luci2/htdocs/luci2/uci.js b/luci2/htdocs/luci2/uci.js index 2056ce9..c751de3 100644 --- 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) -- cgit v1.2.1