Skip to content

Commit 2c26d24

Browse files
bug #46800 Spaces in system temp folder path cause deprecation errors in php 8 (demeritcowboy)
This PR was merged into the 4.4 branch. Discussion ---------- Spaces in system temp folder path cause deprecation errors in php 8 | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #46799 | License | MIT | Doc PR | See #46799 Commits ------- 2ac82ac Spaces in system temp folder path cause deprecation errors in php 8
2 parents 99fa193 + 2ac82ac commit 2c26d24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ private function shouldEnableEntityLoader(): bool
676676
});
677677
$schema = '<?xml version="1.0" encoding="utf-8"?>
678678
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
679-
<xsd:include schemaLocation="file:///'.str_replace('\\', '/', $tmpfile).'" />
679+
<xsd:include schemaLocation="file:///'.rawurlencode(str_replace('\\', '/', $tmpfile)).'" />
680680
</xsd:schema>';
681681
file_put_contents($tmpfile, '<?xml version="1.0" encoding="utf-8"?>
682682
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy