Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Commit acda0a3

Browse files
authored
fix: url escape results url (#21)
1 parent cf5463f commit acda0a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎jfrog/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"encoding/json"
66
"fmt"
77
"net/http"
8+
"net/url"
89
"path/filepath"
910

1011
"github.com/google/go-containerregistry/pkg/name"
@@ -103,7 +104,7 @@ type Image struct {
103104
}
104105

105106
func (c *client) ResultsURL(img Image, packageID string) string {
106-
return fmt.Sprintf("%s/ui/scans-list/packages-scans/%s/scan-descendants/%s?package_id=%s&version=%s", c.baseURL, img.Package, img.Version, packageID, img.Version)
107+
return fmt.Sprintf("%s/ui/scans-list/packages-scans/%s/scan-descendants/%s?package_id=%s&version=%s", c.baseURL, url.PathEscape(img.Package), url.PathEscape(img.Version), url.QueryEscape(packageID), url.QueryEscape(img.Version))
107108
}
108109

109110
func ParseImage(image string) (Image, error) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /