10000 Fixed failed config schema loads due to libxml_disable_entity_loader · symfony/symfony@de2bef5 · GitHub
[go: up one dir, main page]

Skip to content

Commit de2bef5

Browse files
ccorlissfabpot
authored andcommitted
Fixed failed config schema loads due to libxml_disable_entity_loader
usage. Applied CS patch.
1 parent 8a68e6c commit de2bef5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/Config/Util/XmlUtils.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ public static function loadFile($file, $schemaOrCallable = null)
8080
$valid = false;
8181
}
8282
} elseif (!is_array($schemaOrCallable) && is_file((string) $schemaOrCallable)) {
83-
$valid = @$dom->schemaValidate($schemaOrCallable);
83+
$schemaSource = file_get_contents((string) $schemaOrCallable);
84+
$valid = @$dom->schemaValidateSource($schemaSource);
8485
} else {
8586
libxml_use_internal_errors($internalErrors);
8687

0 commit comments

Comments
 (0)
0