forked from I2P_Developers/i2p.i2p
Console: More validation on URL when installing plugin
This commit is contained in:
@ -525,6 +525,10 @@ public class ConfigClientsHandler extends FormHandler {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!url.startsWith("file:")) {
|
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())
|
if (!verifyProxy())
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user