Changeset 005f7372


Ignore:
Timestamp:
Feb 24, 2018 4:58:18 PM (3 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
622c680
Parents:
5b0680b
Message:

Console: More validation on URL when installing plugin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/helpers/ConfigClientsHandler.java

    r5b0680b r005f7372  
    526526        }
    527527        if (!url.startsWith("file:")) {
     528            if (uri.getScheme() == null || uri.getHost() == null || uri.getPath() == null || uri.getPath().length() <= 1) {
     529                addFormError(_t("Bad URL {0}", url));
     530                return;
     531            }
    528532            if (!verifyProxy())
    529533                return;
Note: See TracChangeset for help on using the changeset viewer.