Changeset 910a0d8 for apps


Ignore:
Timestamp:
Mar 28, 2019 5:10:07 PM (20 months ago)
Author:
zab2 <zab2@…>
Branches:
master
Children:
440d557
Parents:
c5f9aea5
Message:

fix b32 parsing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/access/FilterDefinitionElement.java

    rc5f9aea5 r910a0d8  
    2222
    2323    protected static Hash fromBase32(String b32) throws InvalidDefinitionException {
    24         if (!b32.endsWith("b32.i2p"))
     24        if (!b32.endsWith(".b32.i2p"))
    2525            throw new InvalidDefinitionException("Invalid b32 " + b32);
    26         b32 = b32.substring(0, b32.length() - 7);
     26        b32 = b32.substring(0, b32.length() - 8);
    2727        return new Hash(Base32.decode(b32));
    2828    }
Note: See TracChangeset for help on using the changeset viewer.