You've already forked jenkins-lib
mirror of
https://github.com/firstBitMarksistskaya/jenkins-lib.git
synced 2025-08-25 20:09:25 +02:00
Additionally check toUri
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user