Skip to content

Commit

Permalink
Additionally check toUri
Browse files Browse the repository at this point in the history
  • Loading branch information
nixel2007 committed Aug 26, 2024
1 parent be50b03 commit 5fb93d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ru/pulsar/jenkins/library/utils/FileUtils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ class FileUtils {

private static boolean isValidUrl(String url) {
try {
new URL(url)
new URL(url).toURI()
return true
} catch (MalformedURLException e) {
} catch (MalformedURLException | URISyntaxException e) {
return false
}
}
Expand Down

0 comments on commit 5fb93d2

Please sign in to comment.