Changeset 81713a0


Ignore:
Timestamp:
Feb 1, 2018 2:17:57 PM (3 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
a021e0d
Parents:
cccf76c
Message:

i2psnark: Escape chars not escaped by browsers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2psnark/java/src/org/klomp/snark/SnarkManager.java

    rcccf76c r81713a0  
    25302530        StringBuilder buf = new StringBuilder(256);
    25312531        String base = DataHelper.escapeHTML(storage.getBaseName());
    2532         buf.append("<a href=\"").append(_contextPath).append('/').append(base);
     2532        String enc = base.replace("[", "%5B").replace("]", "%5D").replace("|", "%7C");
     2533        buf.append("<a href=\"").append(_contextPath).append('/').append(enc);
    25332534        if (meta.getFiles() != null || !storage.complete())
    25342535            buf.append('/');
Note: See TracChangeset for help on using the changeset viewer.