Skip to content

Commit

Permalink
rest_router: fix security problem
Browse files Browse the repository at this point in the history
Signed-off-by: Takeshi <[email protected]>
Signed-off-by: FUJITA Tomonori <[email protected]>
  • Loading branch information
Yi-Tseng authored and fujita committed Oct 27, 2014
1 parent df2cf83 commit 16ea9e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ryu/app/rest_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def delete_vlan_data(self, req, switch_id, vlan_id, **_kwargs):
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)
Expand Down

0 comments on commit 16ea9e4

Please sign in to comment.