Console: More validation on URL when installing plugin

This commit is contained in:
zzz
2018-02-24 16:58:18 +00:00
parent 5b0680b29e
commit 005f73729e

View File

@ -525,6 +525,10 @@ public class ConfigClientsHandler extends FormHandler {
return;
}
if (!url.startsWith("file:")) {
if (uri.getScheme() == null || uri.getHost() == null || uri.getPath() == null || uri.getPath().length() <= 1) {
addFormError(_t("Bad URL {0}", url));
return;
}
if (!verifyProxy())
return;
}