Ignore:
Timestamp:
2020-03-15T21:59:03+01:00 (6 years ago)
Author:
Don-vip
Message:

fix #18936 - fix layer name detection of Overpass xapi URLs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java

    r15789 r16144  
    189189        if (newLayerName == null || newLayerName.isEmpty()) {
    190190            Matcher matcher = Pattern.compile(pattern).matcher(url);
    191             newLayerName = matcher.matches() && matcher.groupCount() > 0 ? matcher.group(1) : null;
     191            newLayerName = matcher.matches() && matcher.groupCount() > 0 ? Utils.decodeUrl(matcher.group(1)) : null;
    192192        }
    193193    }
Note: See TracChangeset for help on using the changeset viewer.