Ignore:
Timestamp:
2014-04-12T11:26:11+02:00 (10 years ago)
Author:
bastiK
Message:

see #9906 - remotecontrol import handler: add workaround when URLs with multibyte
characters are only one time percent encoded

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/ImportHandler.java

    r6897 r6972  
    1313import org.openstreetmap.josm.actions.downloadtasks.DownloadTask;
    1414import org.openstreetmap.josm.io.remotecontrol.PermissionPrefWithDefault;
     15import org.openstreetmap.josm.tools.Utils;
    1516
    1617/**
     
    113114    @Override
    114115    protected void validateRequest() throws RequestHandlerBadRequestException {
    115         final String urlString = args.get("url");
     116        String urlString = args.get("url");
     117        if (Main.pref.getBoolean("remotecontrol.importhandler.fix_url_query", true)) {
     118            urlString = Utils.fixURLQuery(urlString);
     119        }
    116120        try {
    117121            // Ensure the URL is valid
Note: See TracChangeset for help on using the changeset viewer.