Changeset fc292cd


Ignore:
Timestamp:
Jan 17, 2012 2:59:21 AM (9 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
bafdaeb
Parents:
553201d
Message:

Fix for #588 part 4: Pull out escaping of & separately first

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/data/DataHelper.java

    r553201d rfc292cd  
    14771477        if (unescaped == null) return "";
    14781478        Map<String, String> map = new HashMap<String, String>();
    1479         map.put("&","&amp;");
    14801479        map.put("\"","&quot;");
    14811480        map.put("<","&lt;");
    14821481        map.put(">","&gt;");
    1483         String escaped = unescaped;
     1482        String escaped = unescaped.replaceAll("&","&amp;");
    14841483        for (Map.Entry<String, String> entry : map.entrySet()) {
    14851484            String k = entry.getKey();
Note: See TracChangeset for help on using the changeset viewer.