fix emails not showing up in import keyserver search

This commit is contained in:
uberspot 2014-03-18 19:24:04 +02:00
parent 9badff0b5b
commit ea648e5a43

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".