Skip to content
Snippets Groups Projects
Commit d44e52ff authored by Lin Fan's avatar Lin Fan
Browse files

Update PassBook.java

parent 5cac2ade
Branches master
No related tags found
No related merge requests found
Pipeline #6252 failed
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment