Skip to content

Commit

Permalink
see r18407, #21756: Don't log oauth secrets (PMD)
Browse files Browse the repository at this point in the history
git-svn-id: https://josm.openstreetmap.de/svn/trunk@18409 0c6e7542-c601-0410-84e7-c038aed88b3b
  • Loading branch information
taylor.smock committed Mar 22, 2022
1 parent b73fd00 commit ae27cba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/openstreetmap/josm/tools/HttpClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public final Response connect() throws IOException {
* @return Stripped URL (privacy related issues removed)
*/
private String stripUrl(URL url) {
return url.toString().replaceAll("(token|key|connectId)=[^&]+","$1=...stripped...");
return url.toString().replaceAll("(token|key|connectId)=[^&]+", "$1=...stripped...");
}

/**
Expand Down

0 comments on commit ae27cba

Please sign in to comment.