Skip to content

Commit 0c6efd5

Browse files
committed
run cs fixer
1 parent b988e72 commit 0c6efd5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Http/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ private function assertSafePath(string $path): void
684684
throw new InvalidArgumentException('Path traversal detected.');
685685
}
686686

687-
if (str_contains($path, '://') || str_starts_with(strtolower($path), 'phar://') || str_starts_with(strtolower($path), 'php://') || str_starts_with(strtolower($path), 'data://')) {
687+
if (str_contains($path, '://') || str_starts_with(mb_strtolower($path), 'phar://') || str_starts_with(mb_strtolower($path), 'php://') || str_starts_with(mb_strtolower($path), 'data://')) {
688688
throw new InvalidArgumentException('Stream wrappers are not allowed.');
689689
}
690690
}

0 commit comments

Comments
 (0)