Changeset 13728 in josm


Ignore:
Timestamp:
2018-05-11T00:08:58+02:00 (15 months ago)
Author:
Don-vip
Message:

use JOSM Utils.encodeUrl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/CachedFile.java

    r13725 r13728  
    1313import java.net.MalformedURLException;
    1414import java.net.URL;
    15 import java.net.URLEncoder;
    1615import java.nio.charset.StandardCharsets;
    1716import java.nio.file.Files;
     
    490489                uc = u.replaceAll("%<(.*)>", "");
    491490            } else {
    492                 uc = u.replaceAll("%<(.*)>", "$1"+URLEncoder.encode(parameter, "UTF-8"));
     491                uc = u.replaceAll("%<(.*)>", "$1" + Utils.encodeUrl(parameter));
    493492            }
    494493            if (!uc.equals(u))
Note: See TracChangeset for help on using the changeset viewer.