From cd7ef792ce6a8b9cce29425235b89368f286ff4a Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Thu, 24 Jul 2014 14:56:34 +0200 Subject: fix #4080: user name with >< characters fails to login Note that the HTML code generated by geocaching.com is invalid if the username contains a "<". We now support it anyway, as long as the user name does not contain "". --- main/src/cgeo/geocaching/connector/gc/GCConstants.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/src/cgeo/geocaching/connector/gc/GCConstants.java b/main/src/cgeo/geocaching/connector/gc/GCConstants.java index 635034b..79e570b 100644 --- a/main/src/cgeo/geocaching/connector/gc/GCConstants.java +++ b/main/src/cgeo/geocaching/connector/gc/GCConstants.java @@ -66,7 +66,7 @@ public final class GCConstants { public final static Pattern PATTERN_WATCHLIST = Pattern.compile(Pattern.quote("watchlist.aspx") + ".{1,50}" + Pattern.quote("action=rem")); // Info box top-right - public static final Pattern PATTERN_LOGIN_NAME = Pattern.compile("\"SignedInProfileLink\">([^<]+)"); + public static final Pattern PATTERN_LOGIN_NAME = Pattern.compile("\"SignedInProfileLink\">(.*?)"); public static final Pattern PATTERN_MEMBER_STATUS = Pattern.compile("([^<]+)"); public static final String MEMBER_STATUS_RENEW = "