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