Skip to content

Commit ebd295a

Browse files
committed
Added fix for encoded local file paths.
1 parent d49aaa0 commit ebd295a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HTMLServerComponentsCompiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function process($html)
6363
if ($scheme === 'data') {
6464
$componentHTML = $this->processData($sourceParts[1]);
6565
} elseif ($scheme === 'file') {
66-
$componentHTML = $this->processFile($sourceParts[1], $attributes, $component->innerHTML);
66+
$componentHTML = $this->processFile(urldecode($sourceParts[1]), $attributes, $component->innerHTML);
6767
} else {
6868
throw new \Exception('URI scheme not valid!' . $domDocument->saveHTML($component));
6969
}

0 commit comments

Comments
 (0)