commit | 25aa349b5b3d0919adc15b1f1812b3d0fd8cfd1c | [log] [tgz] |
---|---|---|
author | Steffen Gebert <steffen.gebert@typo3.org> | Tue May 14 08:54:04 2013 +0200 |
committer | Steffen Gebert <steffen.gebert@typo3.org> | Tue May 14 08:54:04 2013 +0200 |
tree | 1a5426f778752eb85d966c70de284a719409a1be | |
parent | 08ab857e06204c629aa8123af78903e43bdeca4a [diff] |
Use String.replaceFirst() to substitute %s with username
diff --git a/src/main/java/org/typo3/gerrit/plugins/avatars/typo3org/ExternalUrlAvatarProvider.java b/src/main/java/org/typo3/gerrit/plugins/avatars/typo3org/ExternalUrlAvatarProvider.java index 5569873..6545b2b 100644 --- a/src/main/java/org/typo3/gerrit/plugins/avatars/typo3org/ExternalUrlAvatarProvider.java +++ b/src/main/java/org/typo3/gerrit/plugins/avatars/typo3org/ExternalUrlAvatarProvider.java
@@ -75,7 +75,7 @@ } // replace the %s inside the URL with the username - String url = String.format(externalAvatarUrl, username); + String url = externalAvatarUrl.replaceFirst("%s", username); return url; }