Changeset 15187 in josm


Ignore:
Timestamp:
2019-06-22T16:23:31+02:00 (3 months ago)
Author:
Don-vip
Message:

see #17835 - detect invalid plugin versions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/plugins/PluginInformation.java

    r14480 r15187  
    246246        stage = stageStr == null ? 50 : Integer.parseInt(stageStr);
    247247        version = attr.getValue("Plugin-Version");
     248        if (version != null && !version.isEmpty() && version.charAt(0) == '$') {
     249            invalidManifestEntries.add("Plugin-Version");
     250        }
    248251        s = attr.getValue("Plugin-Mainversion");
    249252        if (s != null) {
Note: See TracChangeset for help on using the changeset viewer.