mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-01-24 18:11:24 +01:00
rest_router: fix security problem
Signed-off-by: Takeshi <a86487817@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
df2cf837ab
commit
16ea9e4701
@ -410,7 +410,7 @@ class RouterController(ControllerBase):
|
||||
def _access_router(self, switch_id, vlan_id, func, rest_param):
|
||||
rest_message = []
|
||||
routers = self._get_router(switch_id)
|
||||
param = eval(rest_param) if rest_param else {}
|
||||
param = json.loads(rest_param) if rest_param else {}
|
||||
for router in routers.values():
|
||||
function = getattr(router, func)
|
||||
data = function(vlan_id, param, self.waiters)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user