Skip to content

Commit

Permalink
Merge pull request #1 from PiPeep/patch-1
Browse files Browse the repository at this point in the history
Using yaml.load is Dangerous for Untrusted Input
  • Loading branch information
ptarjan committed May 1, 2012
2 parents da87d46 + 7e55764 commit 4624f29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Expand Up @@ -41,7 +41,7 @@

def getOutput(y, type) :
try :
objects = yaml.load(y)
objects = yaml.safe_load(y)
if type == "python" :
return pprint.pformat(objects)
elif type == "canonical_yaml" :
Expand Down

0 comments on commit 4624f29

Please sign in to comment.