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/layer/Layer.java

    r11553 r11848  
    553553        if (!isProjectionSupported(newValue)) {
    554554            final String message = "<html><body><p>" +
    555                     tr("The layer {0} does not support the new projection {1}.", getName(), newValue.toCode()) + "</p>" +
     555                    tr("The layer {0} does not support the new projection {1}.",
     556                            Utils.escapeReservedCharactersHTML(getName()), newValue.toCode()) + "</p>" +
    556557                    "<p style='width: 450px;'>" + tr("Supported projections are: {0}", nameSupportedProjections()) + "</p>" +
    557558                    tr("Change the projection again or remove the layer.");
Note: See TracChangeset for help on using the changeset viewer.