* added SFTP support

* Fixed bug with reference URL fields (for SearchURL)
* check for ART and display warning
This commit is contained in:
Philipp Crocoll
2013-12-31 09:46:57 +01:00
parent 5e7f489e76
commit e27c4fa727
169 changed files with 29140 additions and 262 deletions

View File

@@ -17,6 +17,7 @@ This file is part of Keepass2Android, Copyright 2013 Philipp Crocoll. This file
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using KeePass.Util.Spr;
using KeePassLib;
using KeePassLib.Collections;
using KeePassLib.Interfaces;
@@ -104,7 +105,9 @@ namespace keepass2android
return pgResults;
foreach (PwEntry entry in database.Entries.Values)
{
String otherHost = ExtractHost(entry.Strings.ReadSafe(PwDefs.UrlField));
string otherUrl = entry.Strings.ReadSafe(PwDefs.UrlField);
otherUrl = SprEngine.Compile(otherUrl, new SprContext(entry, database.KpDatabase, SprCompileFlags.References));
String otherHost = ExtractHost(otherUrl);
if ((allowSubdomains) && (otherHost.StartsWith("www.")))
otherHost = otherHost.Substring(4); //remove "www."
if (String.IsNullOrWhiteSpace(otherHost))