Changeset 2073 in josm


Ignore:
Timestamp:
2009-09-06T23:16:11+02:00 (11 years ago)
Author:
Gubaer
Message:

fixed #3382: Opening a /user/ page fails for usernames with a space (" ") in them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/UserListDialog.java

    r2070 r2073  
    201201            User user = (User)infoObject;
    202202            try {
    203                 return getBaseUserUrl() + "/" + URLEncoder.encode(user.getName(), "UTF-8");
     203                return getBaseUserUrl() + "/" + URLEncoder.encode(user.getName(), "UTF-8").replaceAll("\\+", "%20");
    204204            } catch(UnsupportedEncodingException e) {
    205205                e.printStackTrace();
Note: See TracChangeset for help on using the changeset viewer.