aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-07-15 13:50:32 +0000
committerJo-Philipp Wich <jow@openwrt.org>2013-07-15 13:50:32 +0000
commit738e337aa1003cf071035092bfe78f1cdf2d9e09 (patch)
treeab719765ac182b14b81cbe663234359b26a26149
parent35bc211eb648d5ab3fcc63ac7b2f520f8b0c9b1f (diff)
downloadupstream-738e337aa1003cf071035092bfe78f1cdf2d9e09.tar.gz
upstream-738e337aa1003cf071035092bfe78f1cdf2d9e09.tar.bz2
upstream-738e337aa1003cf071035092bfe78f1cdf2d9e09.zip
AA: base-files: merge r37345
git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@37346 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/base-files/files/lib/functions/network.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/base-files/files/lib/functions/network.sh b/package/base-files/files/lib/functions/network.sh
index 5ffe2ca0b9..ead69aa626 100644
--- a/package/base-files/files/lib/functions/network.sh
+++ b/package/base-files/files/lib/functions/network.sh
@@ -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