Changeset ee51f69 for apps/addressbook


Ignore:
Timestamp:
Nov 10, 2009 2:44:40 PM (11 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
42cbd6c1
Parents:
e028450
Message:
  • Addressbook, NamingService?: Allow 516 byte dests that end with AA but not AAAA, so we can permit non-null zero-length certs.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/addressbook/java/src/addressbook/AddressBook.java

    re028450 ree51f69  
    194194                (! host.endsWith(".console.i2p")) &&
    195195
    196                 ((dest.length() == MIN_DEST_LENGTH && dest.endsWith("AAAA")) ||
     196                // null cert ends with AAAA but other zero-length certs would be AA
     197                ((dest.length() == MIN_DEST_LENGTH && dest.endsWith("AA")) ||
    197198                 (dest.length() > MIN_DEST_LENGTH && dest.length() <= MAX_DEST_LENGTH)) &&
    198199                dest.replaceAll("[a-zA-Z0-9~-]", "").length() == 0
Note: See TracChangeset for help on using the changeset viewer.