Merge pull request #6561 from markmckinnon/3997-IllegalArgumentException-in-RecentActivity.SearchEngineURLQueryAnalyzer

3997-IllegalArgumentException-in-RecentActivity.SearchEngineURLQueryAnalyzer
This commit is contained in:
Richard Cordovano 2020-12-18 15:36:25 -05:00 committed by GitHub
commit 5fd2192dde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -247,7 +247,7 @@ class SearchEngineURLQueryAnalyzer extends Extract {
} }
} }
try { //try to decode the url try { //try to decode the url
String decoded = URLDecoder.decode(x, "UTF-8"); //NON-NLS String decoded = URLDecoder.decode(x.replaceAll("%(?![0-9a-fA-F]{2})", "%25"), "UTF-8"); //NON-NLS
return decoded; return decoded;
} catch (UnsupportedEncodingException exception) { //if it fails, return the encoded string } catch (UnsupportedEncodingException exception) { //if it fails, return the encoded string
logger.log(Level.FINE, "Error during URL decoding, returning undecoded value:" logger.log(Level.FINE, "Error during URL decoding, returning undecoded value:"