1
0
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:
Nikita Fedkin
2024-08-26 22:30:59 +02:00
parent be50b03f12
commit 5fb93d2343

View File

@@ -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
}
}