Changeset 10294 in josm for trunk/src/org/openstreetmap/josm/plugins
- Timestamp:
- 2016-05-29T00:14:28+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginInformation.java
r10212 r10294 12 12 import java.lang.reflect.Constructor; 13 13 import java.lang.reflect.InvocationTargetException; 14 import java.net.MalformedURLException;15 14 import java.net.URL; 16 15 import java.text.MessageFormat; … … 206 205 s = attr.getValue("Plugin-Link"); 207 206 } 208 if (s != null) { 209 try { 210 new URL(s); 211 } catch (MalformedURLException e) { 212 Main.info(tr("Invalid URL ''{0}'' in plugin {1}", s, name)); 213 s = null; 214 } 207 if (s != null && !Utils.isValidUrl(s)) { 208 Main.info(tr("Invalid URL ''{0}'' in plugin {1}", s, name)); 209 s = null; 215 210 } 216 211 link = s;
Note:
See TracChangeset
for help on using the changeset viewer.