Changeset 13391 in josm


Ignore:
Timestamp:
2018-02-07T02:21:24+01:00 (3 months ago)
Author:
Don-vip
Message:

fix #15887 - escape HTML reserved characters in OSM primitive tooltips

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/DefaultNameFormatter.java

    r13142 r13391  
    492492            String key = keyList.get(i);
    493493            sb.append("<strong>")
    494               .append(key)
     494              .append(Utils.escapeReservedCharactersHTML(key))
    495495              .append("</strong>=");
    496496            String value = tags.get(key);
    497497            while (!value.isEmpty()) {
    498                 sb.append(value.substring(0, Math.min(50, value.length())));
     498                sb.append(Utils.escapeReservedCharactersHTML(value.substring(0, Math.min(50, value.length()))));
    499499                if (value.length() > 50) {
    500500                    sb.append("<br>");
Note: See TracChangeset for help on using the changeset viewer.