Changeset 553201d


Ignore:
Timestamp:
Jan 17, 2012 2:17:05 AM (9 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
fc292cd
Parents:
452096b
Message:

Fix for #588 part 3: Escape & character FIRST so other escapes aren't broken

File:
1 edited

Legend:

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

    r452096b r553201d  
    14771477        if (unescaped == null) return "";
    14781478        Map<String, String> map = new HashMap<String, String>();
     1479        map.put("&","&amp;");
    14791480        map.put("\"","&quot;");
    1480         map.put("&","&amp;");
    14811481        map.put("<","&lt;");
    14821482        map.put(">","&gt;");
     
    14981498        if (escaped == null) return "";
    14991499        Map<String, String> map = new HashMap<String, String>();
     1500        map.put("&amp;","&");
    15001501        map.put("&quot;","\"");
    1501         map.put("&amp;","&");
    15021502        map.put("&lt;","<");
    15031503        map.put("&gt;",">");
Note: See TracChangeset for help on using the changeset viewer.