AA: base-files: merge r37345
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 15 Jul 2013 13:50:32 +0000 (13:50 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 15 Jul 2013 13:50:32 +0000 (13:50 +0000)
SVN-Revision: 37346

package/base-files/files/lib/functions/network.sh

index 5ffe2ca..ead69aa 100644 (file)
@@ -25,6 +25,10 @@ __network_parse_ifstatus()
        local __list
        local __old_ns
 
+       case "$__iface" in
+               *[^a-zA-Z0-9_]*) return 1 ;;
+       esac
+
        __network_export __tmp "${__key}__parsed" && return 0
        __tmp="$(ubus call network.interface."$__iface" status 2>/dev/null)"
        [ -n "$__tmp" ] || return 1