Skip to content

Commit

Permalink
devonfw#550: fix download url generated from plugin id - for whitespa…
Browse files Browse the repository at this point in the history
…ce etc. (devonfw#615)
  • Loading branch information
slskiba authored Sep 16, 2024
1 parent 509063b commit f296ef9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Set;
Expand Down Expand Up @@ -68,7 +70,7 @@ public void installPlugin(PluginDescriptor plugin) {
*/
private String getDownloadUrl(PluginDescriptor plugin) {
String downloadUrl = plugin.getUrl();
String pluginId = plugin.getId();
String pluginId = URLEncoder.encode(plugin.getId(), StandardCharsets.UTF_8).replaceAll("\\+", "%20");

String buildVersion = readBuildVersion();

Expand Down

0 comments on commit f296ef9

Please sign in to comment.