splitted host:port (#4731), fixed invalid host for icmp (#4732)

This commit is contained in:
gabryon99 2020-11-19 15:52:32 +01:00
parent cbb1c3be2c
commit 29c102b7b7
6 changed files with 13 additions and 9 deletions

View file

@ -3663,10 +3663,9 @@ function generate_select(id, name, is_required, is_disabled, options, additional
local disabled_flag = (is_disabled and "disabled" or "")
local name_attr = (name ~= "" and "name='" .. name .. "'" or "")
local parsed_options = ""
for i, option in ipairs(options) do
parsed_options = parsed_options .. ([[
<option value="]].. option.value ..[[">]].. option.title ..[[</option>
<option ]].. (i == 1 and "selected" or "") ..[[ value="]].. option.value ..[[">]].. option.title ..[[</option>
]])
end