diff options
author | Bananeweizen <Bananeweizen@gmx.de> | 2012-06-08 10:34:23 +0200 |
---|---|---|
committer | Bananeweizen <Bananeweizen@gmx.de> | 2012-06-08 10:34:23 +0200 |
commit | 95b5e9a81052f15328d81716f17d9b670bd88567 (patch) | |
tree | 7174f83a4f21feac1873724fc1752064c33fee68 /main/src/cgeo/geocaching/connector/gc/GCParser.java | |
parent | b2e5e4ade32bacd540b27177067fb48eb796fcd6 (diff) | |
download | cgeo-95b5e9a81052f15328d81716f17d9b670bd88567.zip cgeo-95b5e9a81052f15328d81716f17d9b670bd88567.tar.gz cgeo-95b5e9a81052f15328d81716f17d9b670bd88567.tar.bz2 |
#1744: user name wrongly parsed/written in GPX import/export
Diffstat (limited to 'main/src/cgeo/geocaching/connector/gc/GCParser.java')
-rw-r--r-- | main/src/cgeo/geocaching/connector/gc/GCParser.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/connector/gc/GCParser.java b/main/src/cgeo/geocaching/connector/gc/GCParser.java index 44b35b6..ab579c4 100644 --- a/main/src/cgeo/geocaching/connector/gc/GCParser.java +++ b/main/src/cgeo/geocaching/connector/gc/GCParser.java @@ -377,9 +377,9 @@ public abstract class GCParser { cache.setName(cacheName); // owner real name - cache.setOwnerReal(URLDecoder.decode(BaseUtils.getMatch(page, GCConstants.PATTERN_OWNERREAL, true, cache.getOwnerReal()))); + cache.setOwnerUserId(URLDecoder.decode(BaseUtils.getMatch(page, GCConstants.PATTERN_OWNER_USERID, true, cache.getOwnerUserId()))); - cache.setOwn(StringUtils.equalsIgnoreCase(cache.getOwnerReal(), Settings.getUsername())); + cache.setOwn(StringUtils.equalsIgnoreCase(cache.getOwnerUserId(), Settings.getUsername())); String tableInside = page; @@ -405,7 +405,7 @@ public abstract class GCParser { } // owner - cache.setOwner(Html.fromHtml(BaseUtils.getMatch(tableInside, GCConstants.PATTERN_OWNER, true, cache.getOwner())).toString()); + cache.setOwnerDisplayName(Html.fromHtml(BaseUtils.getMatch(tableInside, GCConstants.PATTERN_OWNER_DISPLAYNAME, true, cache.getOwnerDisplayName())).toString()); // hidden try { |