Skip to content

Commit

Permalink
Merge pull request #3618 from kobergj/UnescapePathInGraph
Browse files Browse the repository at this point in the history
[tests-only] Unescape path in graph getdrive
  • Loading branch information
micbar authored Apr 29, 2022
2 parents fb73322 + ce45e90 commit 09c6f23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/graph/pkg/service/v0/drives.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (g Graph) GetDrives(w http.ResponseWriter, r *http.Request) {

// GetSingleDrive does a lookup of a single space by spaceId
func (g Graph) GetSingleDrive(w http.ResponseWriter, r *http.Request) {
driveID := chi.URLParam(r, "driveID")
driveID, _ := url.PathUnescape(chi.URLParam(r, "driveID"))
if driveID == "" {
err := fmt.Errorf("no valid space id retrieved")
g.logger.Err(err)
Expand Down

0 comments on commit 09c6f23

Please sign in to comment.