aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2015-02-22 15:02:14 +0100
committerBananeweizen <bananeweizen@gmx.de>2015-02-22 15:02:14 +0100
commit53b5ee991350a5281775e6b651ab2bf589f2f01c (patch)
tree52fcae724a4d1d0eb92a03a69257c2f5798ad78b /main
parentbd313c736eb1da343834ea416254c1daed34364a (diff)
downloadcgeo-53b5ee991350a5281775e6b651ab2bf589f2f01c.zip
cgeo-53b5ee991350a5281775e6b651ab2bf589f2f01c.tar.gz
cgeo-53b5ee991350a5281775e6b651ab2bf589f2f01c.tar.bz2
fix geochecker links with encoded HTML
Diffstat (limited to 'main')
-rw-r--r--main/src/cgeo/geocaching/utils/CheckerUtils.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/utils/CheckerUtils.java b/main/src/cgeo/geocaching/utils/CheckerUtils.java
index 956ebbf..39ef078 100644
--- a/main/src/cgeo/geocaching/utils/CheckerUtils.java
+++ b/main/src/cgeo/geocaching/utils/CheckerUtils.java
@@ -2,6 +2,7 @@ package cgeo.geocaching.utils;
import cgeo.geocaching.Geocache;
+import org.apache.commons.lang3.StringEscapeUtils;
import org.apache.commons.lang3.StringUtils;
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.Nullable;
@@ -25,7 +26,7 @@ public final class CheckerUtils {
final String url = matcher.group();
for (final String checker : CHECKERS) {
if (StringUtils.containsIgnoreCase(url, checker)) {
- return url;
+ return StringEscapeUtils.unescapeHtml4(url);
}
}
}