Skip to content

Commit

Permalink
needs a fix #18
Browse files Browse the repository at this point in the history
  • Loading branch information
jkowalleck committed Nov 14, 2021
1 parent 59fa55f commit f2a89da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Core/Models/ExternalReference.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public function getUrl(): string
*/
public function setUrl(string $url): self
{
// @FIXME https://github.com/CycloneDX/cyclonedx-php-library/issues/18
if (false === filter_var($url, \FILTER_VALIDATE_URL)) {
throw new InvalidArgumentException("Invalid URL: $url");
}
Expand Down

0 comments on commit f2a89da

Please sign in to comment.