Merge pull request #441 from uberspot/master

fix emails not showing up in import keyserver search
This commit is contained in:
Dominik Schürmann 2014-03-18 18:27:22 +01:00
commit 6a854a86dd

View File

@ -257,8 +257,7 @@ public class HkpKeyServer extends KeyServer {
final String uidLines = matcher.group(7); final String uidLines = matcher.group(7);
final Matcher uidMatcher = UID_LINE.matcher(uidLines); final Matcher uidMatcher = UID_LINE.matcher(uidLines);
while (uidMatcher.find()) { while (uidMatcher.find()) {
String tmp = uidMatcher.group(1).replaceAll("<.*?>", ""); String tmp = uidMatcher.group(1).trim();
tmp = Html.fromHtml(tmp).toString().trim();
if (tmp.contains("%")) { if (tmp.contains("%")) {
try { try {
// converts Strings like "Universit%C3%A4t" to a proper encoding form "Universität". // converts Strings like "Universit%C3%A4t" to a proper encoding form "Universität".