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/io/OsmExporter.java

    r11809 r11848  
    9494            JOptionPane.showMessageDialog(
    9595                    Main.parent,
    96                     tr("<html>An error occurred while saving.<br>Error is:<br>{0}</html>", e.getMessage()),
     96                    tr("<html>An error occurred while saving.<br>Error is:<br>{0}</html>",
     97                            Utils.escapeReservedCharactersHTML(e.getMessage())),
    9798                    tr("Error"),
    9899                    JOptionPane.ERROR_MESSAGE
     
    108109                JOptionPane.showMessageDialog(
    109110                        Main.parent,
    110                         tr("<html>An error occurred while restoring backup file.<br>Error is:<br>{0}</html>", e2.getMessage()),
     111                        tr("<html>An error occurred while restoring backup file.<br>Error is:<br>{0}</html>",
     112                                Utils.escapeReservedCharactersHTML(e2.getMessage())),
    111113                        tr("Error"),
    112114                        JOptionPane.ERROR_MESSAGE
Note: See TracChangeset for help on using the changeset viewer.