unescape path in graph getdrive

Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
jkoberg authored and Jörn Friedrich Dreyer committed 2022-04-28 22:10:27 +00:00
1 parent fb73322621
commit ce45e90122
1 file changed
+1 -1
+1 -1
View File
@@ -94,7 +94,7 @@ func (g Graph) GetDrives(w http.ResponseWriter, r *http.Request) {
// GetSingleDrive does a lookup of a single space by spaceId // GetSingleDrive does a lookup of a single space by spaceId
func (g Graph) GetSingleDrive(w http.ResponseWriter, r *http.Request) { func (g Graph) GetSingleDrive(w http.ResponseWriter, r *http.Request) {
driveID := chi.URLParam(r, "driveID") driveID, _ := url.PathUnescape(chi.URLParam(r, "driveID"))
if driveID == "" { if driveID == "" {
err := fmt.Errorf("no valid space id retrieved") err := fmt.Errorf("no valid space id retrieved")
g.logger.Err(err) g.logger.Err(err)