diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2011-11-01 14:46:52 +0100 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2011-11-01 14:46:52 +0100 |
commit | df4c8020c942189ea7854e11baef81a48a88d6ef (patch) | |
tree | e51ad3253cd7745a4386d0995b7aae203ac927d9 /main | |
parent | 15022a068b5cb4d1bd3be4e5c3a82349f198c845 (diff) | |
download | cgeo-df4c8020c942189ea7854e11baef81a48a88d6ef.zip cgeo-df4c8020c942189ea7854e11baef81a48a88d6ef.tar.gz cgeo-df4c8020c942189ea7854e11baef81a48a88d6ef.tar.bz2 |
Decode direction image URL in order to be able to download it
This fixes #732.
Diffstat (limited to 'main')
-rw-r--r-- | main/src/cgeo/geocaching/cgBase.java | 2 | ||||
-rw-r--r-- | main/src/cgeo/geocaching/cgDirectionImg.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/cgBase.java b/main/src/cgeo/geocaching/cgBase.java index d315d66..001b704 100644 --- a/main/src/cgeo/geocaching/cgBase.java +++ b/main/src/cgeo/geocaching/cgBase.java @@ -716,7 +716,7 @@ public class cgBase { final Matcher matcherDirection = patternDirection.matcher(row); while (matcherDirection.find()) { if (matcherDirection.groupCount() > 0) { - cache.directionImg = matcherDirection.group(1); + cache.directionImg = URLDecoder.decode(matcherDirection.group(1)); } } } catch (Exception e) { diff --git a/main/src/cgeo/geocaching/cgDirectionImg.java b/main/src/cgeo/geocaching/cgDirectionImg.java index 9c26b41..964af5d 100644 --- a/main/src/cgeo/geocaching/cgDirectionImg.java +++ b/main/src/cgeo/geocaching/cgDirectionImg.java @@ -9,7 +9,7 @@ import java.io.File; public class cgDirectionImg { - public static void getDrawable(String geocode, String code) { + public static void getDrawable(final String geocode, final String code) { if (StringUtils.isBlank(geocode) || StringUtils.isBlank(code)) { return; } |