Skip to content

Commit 337621b

Browse files
committed
Normalize path to vendor-dir
1 parent c7f8434 commit 337621b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/SimpleSAML/Utils/XML.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,8 @@ public function isValid(string|DOMDocument $xml, string $schema)
343343

344344
if ($res === true) {
345345
$config = Configuration::getInstance();
346-
$schemaFile = $config->getVendorDir() . 'simplesamlphp/saml2/resources/schemas/' . $schema;
346+
$sysUtils = new System();
347+
$schemaFile = $sysUtils->resolvePath($config->getVendorDir() . 'simplesamlphp/saml2/resources/schemas/' . $schema);
347348

348349
libxml_set_external_entity_loader(
349350
/**

0 commit comments

Comments
 (0)