projects
/
15.05
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d44bd53
)
base-files: reject invalid uci keys in network_get_device() and related procedures...
author
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 15 Jul 2013 13:42:58 +0000
(13:42 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 15 Jul 2013 13:42:58 +0000
(13:42 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37345
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
package/base-files/files/lib/functions/network.sh
patch
|
blob
|
history
diff --git
a/package/base-files/files/lib/functions/network.sh
b/package/base-files/files/lib/functions/network.sh
index
5ffe2ca
..
ead69aa
100644
(file)
--- 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