mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Handles allowed interfaces with ids to prevent issues with special chars
This commit is contained in:
parent
03897ecc2e
commit
62e8ee0be7
4 changed files with 9 additions and 6 deletions
|
|
@ -76,8 +76,9 @@ print [[
|
|||
<select name="allowed_interface" id="allowed_interface" class="form-control">
|
||||
<option value="">Any Interface</option>
|
||||
]]
|
||||
|
||||
for _, interface_name in pairsByValues(interface.getIfNames(), asc) do
|
||||
print('<option value="'..interface_name..'"> '..interface_name..'</option>')
|
||||
print('<option value="'..getInterfaceId(interface_name)..'"> '..interface_name..'</option>')
|
||||
end
|
||||
print[[
|
||||
</select>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue