Harden plist parsing
This commit is contained in:
parent
f5cd81be7e
commit
5ecf76a611
@ -232,7 +232,7 @@ module FormulaCellarChecks
|
||||
return unless prefix.directory?
|
||||
|
||||
plist = begin
|
||||
Plist.parse_xml(plist)
|
||||
Plist.parse_xml(plist, marshal: false)
|
||||
rescue
|
||||
nil
|
||||
end
|
||||
|
@ -357,7 +357,7 @@ class SystemCommand
|
||||
Regexp.last_match(1)
|
||||
end
|
||||
|
||||
Plist.parse_xml(output)
|
||||
Plist.parse_xml(output, marshal: false)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user