fix(thumb blob path): separators be wrongly modified (#3062) (#3116)

* fix(thumb blob path): separators be wrongly modified

* Update common.go
pull/3133/head
Darren Yu 9 months ago committed by GitHub
parent a08c796e3f
commit 05c68b4062
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -4,6 +4,7 @@ import (
"context" "context"
"fmt" "fmt"
"math/rand" "math/rand"
"path"
"path/filepath" "path/filepath"
"regexp" "regexp"
"strconv" "strconv"
@ -164,7 +165,7 @@ func ReplaceMagicVar(rawString string, fsSeparator string, pathAvailable bool, b
return match return match
case "{blob_path}": case "{blob_path}":
if blobAvailable { if blobAvailable {
return filepath.Dir(completeBlobPath) + fsSeparator return path.Dir(completeBlobPath) + fsSeparator
} }
return match return match
default: default:

Loading…
Cancel
Save