Changeset 17909 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2021-05-24T12:13:55+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Tag2Link.java
r17736 r17909 27 27 import javax.json.JsonValue; 28 28 29 import com.google.gdata.util.common.base.PercentEscaper;30 29 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; 31 30 import org.openstreetmap.josm.data.osm.OsmUtils; … … 218 217 219 218 private static String getWikimediaCommonsUrl(String i) { 220 return "https://commons.wikimedia.org/wiki/" + new PercentEscaper(PercentEscaper.SAFEPATHCHARS_URLENCODER, false).escape(i); 219 i = i.replace(' ', '_'); 220 i = Utils.encodeUrl(i); 221 return "https://commons.wikimedia.org/wiki/" + i; 221 222 } 222 223
Note:
See TracChangeset
for help on using the changeset viewer.