Changeset 13725 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2018-05-10T23:22:55+02:00 (17 months ago)
Author:
stoecker
Message:

proper URL encoding

File:
1 edited

Legend:

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

    r13647 r13725  
    1313import java.net.MalformedURLException;
    1414import java.net.URL;
     15import java.net.URLEncoder;
    1516import java.nio.charset.StandardCharsets;
    1617import java.nio.file.Files;
     
    489490                uc = u.replaceAll("%<(.*)>", "");
    490491            } else {
    491                 uc = u.replaceAll("%<(.*)>", "$1"+parameter);
     492                uc = u.replaceAll("%<(.*)>", "$1"+URLEncoder.encode(parameter, "UTF-8"));
    492493            }
    493494            if (!uc.equals(u))
Note: See TracChangeset for help on using the changeset viewer.