Ignore:
Timestamp:
2017-04-07T00:18:07+02:00 (7 years ago)
Author:
Don-vip
Message:

fix #14613 - Special HTML characters not escaped in GUI error messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticAuthorizationUI.java

    r11604 r11848  
    5050import org.openstreetmap.josm.io.auth.CredentialsManager;
    5151import org.openstreetmap.josm.tools.ImageProvider;
     52import org.openstreetmap.josm.tools.Utils;
    5253import org.xml.sax.SAXException;
    5354
     
    456457                            +"</html>",
    457458                            loginUrl,
    458                             getOsmUserName()),
     459                            Utils.escapeReservedCharactersHTML(getOsmUserName())),
    459460                    tr("OAuth authorization failed"),
    460461                    JOptionPane.ERROR_MESSAGE,
Note: See TracChangeset for help on using the changeset viewer.