Skip to content

Commit

Permalink
Spaces in system temp folder path cause deprecation errors in php 8
Browse files Browse the repository at this point in the history
  • Loading branch information
demeritcowboy committed Jun 29, 2022
1 parent 814d068 commit 90ef4f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Loader/XmlFileLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ private function shouldEnableEntityLoader(): bool
});
$schema = '<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:include schemaLocation="file:///'.str_replace('\\', '/', $tmpfile).'" />
<xsd:include schemaLocation="file:///'.rawurlencode(str_replace('\\', '/', $tmpfile)).'" />
</xsd:schema>';
file_put_contents($tmpfile, '<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
Expand Down

0 comments on commit 90ef4f5

Please sign in to comment.