Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3097 from pwnetrationguru/yaml-fix
Browse files Browse the repository at this point in the history
[security] - Replace yaml.load() with yaml.safe_load() for security reasons.
  • Loading branch information
mfschwartz committed May 1, 2015
2 parents 3c3302a + 8805eb9 commit 8b65a6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boto/contrib/ymlmessage.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(self, queue=None, body='', xml_attrs=None):
super(YAMLMessage, self).__init__(queue, body)

def set_body(self, body):
self.data = yaml.load(body)
self.data = yaml.safe_load(body)

def get_body(self):
return yaml.dump(self.data)

0 comments on commit 8b65a6c

Please sign in to comment.