mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-14 15:53:36 +01:00
URL encoding double quotes passed in to Maven Central search API #978
This commit is contained in:
@@ -108,7 +108,7 @@ public class CentralSearch {
|
||||
throw new IllegalArgumentException("Invalid SHA1 format");
|
||||
}
|
||||
List<MavenArtifact> result = null;
|
||||
final URL url = new URL(String.format("%s?q=1:\"%s\"&wt=xml", rootURL, sha1));
|
||||
final URL url = new URL(String.format("%s?q=1:%%22%s%%22&wt=xml", rootURL, sha1));
|
||||
|
||||
LOGGER.debug("Searching Central url {}", url);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user