Skip to content

Commit c8748e8

Browse files
authored
Helpers: Invalid link should be escaped only with user notice.
1 parent d19d352 commit c8748e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Helpers.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ public static function parseDomain(string $url): string
3434
return (string) ($parser['domain'] ?? '');
3535
}
3636

37-
throw new \InvalidArgumentException('URL "' . $url . '" is invalid.');
37+
trigger_error('URL "' . $url . '" is invalid.');
38+
39+
return self::escapeHtmlAttr($url);
3840
}
3941

4042

0 commit comments

Comments
 (0)