Commit d44e52ff authored by Lin Fan's avatar Lin Fan

Update PassBook.java

parent 5cac2ade
Pipeline #6252 failed with stages
in 24 seconds
......@@ -39,7 +39,7 @@ public class PassBook
public final static int MINIMUM_PASSPHRASE_LENGTH = 8;
/** Valid URL protocols for the passbook */
public final static String [] VALID_URL_PROTOCOLS = {"http", "https"};
public final static String [] VALID_URL_PROTOCOLS = {"http", "https", "ftp"};
//The passphrases (master passwords) for all users
private Map<String, String> passphrases;
......@@ -250,7 +250,7 @@ public class PassBook
Pair<String, String> pair = pt.get(url);
//if this returned nothing, the user does not have a login for this url
if (pt == null) {
if (pair == null) {
throw new NoSuchURLException(passbookUsername, url);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment