cc-4105: Made reloadMetadataGroupAction safer by validating input
This commit is contained in:
parent
01448d42df
commit
fdf921bbaf
2 changed files with 12 additions and 8 deletions
|
@ -397,8 +397,8 @@ class AirtimeApiClient():
|
|||
action['is_record'] = True
|
||||
else: action['is_record'] = False
|
||||
valid_actions.append(action)
|
||||
|
||||
md_list = dict((i, json.dumps(convert_dict_value_to_utf8(md))) for i,md in enumerate(valid_actions))
|
||||
# Note that we must prefix every key with: mdX where x is a number
|
||||
md_list = dict((("md%d" % i), json.dumps(convert_dict_value_to_utf8(md))) for i,md in enumerate(valid_actions))
|
||||
data = urllib.urlencode(md_list)
|
||||
req = urllib2.Request(url, data)
|
||||
response = self.get_response_from_server(req)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue