Skip to content

Commit affe094

Browse files
committed
fix: correct variable reference in URL validation for external sources
1 parent b8f84d3 commit affe094

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public function getSrc(): string
176176
{
177177
$src = $this->src instanceof Responsive ? $this->src->src : $this->src;
178178
// If the URL starts with 'http://' or 'https://' and is not from 'storage.flyo.cloud', return it directly
179-
if (preg_match('#^https?:\/\/#', $src) && !str_contains($this->src, 'storage.flyo.cloud')) {
179+
if (preg_match('#^https?:\/\/#', $src) && !str_contains($src, 'storage.flyo.cloud')) {
180180
return $src;
181181
}
182182

0 commit comments

Comments
 (0)