Skip to content

Commit

Permalink
Merge branch 'main' of github.com:spatie/browsershot
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Dec 13, 2024
2 parents 1cf6ba6 + c4ed3a8 commit 10a744d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 5.0.2 - 2024-12-13

**Full Changelog**: https://github.com/spatie/browsershot/compare/5.0.1...5.0.2

## 5.0.1 - 2024-12-11

**Full Changelog**: https://github.com/spatie/browsershot/compare/5.0.0...5.0.1
Expand Down
2 changes: 1 addition & 1 deletion src/Browsershot.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public function setUrl(string $url): static

$unsupportedProtocols = ['file://', 'file:/', 'file:\\', 'file:\\\\'];

foreach($unsupportedProtocols as $unsupportedProtocol) {
foreach ($unsupportedProtocols as $unsupportedProtocol) {
if (str_starts_with(strtolower($url), $unsupportedProtocol)) {
throw FileUrlNotAllowed::make();
}
Expand Down

0 comments on commit 10a744d

Please sign in to comment.