Movatterモバイル変換


[0]ホーム

URL:


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.
/coder-xrayPublic archive

Commitacda0a3

Browse files
authored
fix: url escape results url (#21)
1 parentcf5463f commitacda0a3

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(imgImage,packageIDstring)string {
106-
returnfmt.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+
returnfmt.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
funcParseImage(imagestring) (Image,error) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp