Skip to content

Commit

Permalink
fix: Switch to more secure xml parsing
Browse files Browse the repository at this point in the history
Signed-off-by: jld3103 <[email protected]>
  • Loading branch information
provokateurin committed Dec 14, 2023
1 parent 719fecd commit 425cd69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate-spec
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ $phpDocParser = new PhpDocParser($typeParser, $constExprParser);
$infoXMLPath = $dir . "/appinfo/info.xml";

if (file_exists($infoXMLPath)) {
$xml = simplexml_load_file($infoXMLPath);
$xml = simplexml_load_string(file_get_contents($infoXMLPath));
if ($xml === false) {
Logger::panic("appinfo", "info.xml file at " . $infoXMLPath . " is not parsable");
}
Expand Down

0 comments on commit 425cd69

Please sign in to comment.