Ticket #15693: no_decode.patch

File no_decode.patch, 1.5 KB (added by skorbut, 4 months ago)
  • src/org/openstreetmap/josm/io/remotecontrol/AddTagsDialog.java

     
    3535import org.openstreetmap.josm.gui.util.GuiHelper;
    3636import org.openstreetmap.josm.gui.util.TableHelper;
    3737import org.openstreetmap.josm.tools.GBC;
    38 import org.openstreetmap.josm.tools.Utils;
    3938
    4039/**
    4140 * Dialog to add tags as part of the remotecontrol.
     
    270269
    271270    /**
    272271     * parse addtags parameters Example URL (part):
    273      * addtags=wikipedia:de%3DResidenzschloss Dresden|name:en%3DDresden Castle
     272     * addtags=wikipedia:de=Residenzschloss Dresden|name:en=Dresden Castle
    274273     * @param args request arguments
    275274     * @param sender is a string for skipping confirmations. Use empty string for always confirmed adding.
    276275     * @param primitives OSM objects that will be modified
     
    279278        if (args.containsKey("addtags")) {
    280279            GuiHelper.executeByMainWorkerInEDT(() -> {
    281280                Set<String> tagSet = new HashSet<>();
    282                 for (String tag1 : Utils.decodeUrl(args.get("addtags")).split("\\|")) {
     281                for (String tag1 : args.get("addtags").split("\\|")) {
    283282                    if (!tag1.trim().isEmpty() && tag1.contains("=")) {
    284283                        tagSet.add(tag1.trim());
    285284                    }