Skip to content

Commit

Permalink
Fix sanitizing state file path on Windows - fixes #40
Browse files Browse the repository at this point in the history
  • Loading branch information
dee-kryvenko committed Sep 21, 2023
1 parent 35073ac commit 0c87d4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storages/git/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"net/http"
"os"
"path/filepath"
"path"
"strings"
"sync"

Expand All @@ -29,7 +29,7 @@ func (storageClient *StorageClient) ParseMetadataParams(request *http.Request, m
params := RequestMetadataParams{
Repository: query.Get("repository"),
Ref: query.Get("ref"),
State: filepath.Clean(query.Get("state")),
State: path.Clean(query.Get("state")),
}

if params.Repository == "" {
Expand Down

0 comments on commit 0c87d4c

Please sign in to comment.