Skip to content
Commit 6ad6a241 authored by Glenn Washburn's avatar Glenn Washburn Committed by Jo-Philipp Wich
Browse files

luci-mod-network: add stricter wireless interface name validation

Linux wireless interface names have the following restrictions:

 * It must not be an empty string
 * It must not be '.' or '..'
 * It must not contain any /, : or space character ( , \t, \n, ...)
 * It must be less than 16 chars
 * It likely must not contain any % either

Fixes: 8673aef8

 ("luci-mod-network: remove uciname validation from wireless interface")
Signed-off-by: default avatarGlenn Washburn <development@efficientek.com>
[reword validation error messages, remove extended description text as it would be
 shown as part of the validation errors]
Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
parent 9c55500f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment