mirror of
https://github.com/cloudreve/Cloudreve.git
synced 2025-12-26 00:12:50 +00:00
* fix(thumb blob path): separators be wrongly modified * Update common.go
This commit is contained in:
parent
a08c796e3f
commit
05c68b4062
|
|
@ -4,6 +4,7 @@ import (
|
|||
"context"
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"regexp"
|
||||
"strconv"
|
||||
|
|
@ -164,7 +165,7 @@ func ReplaceMagicVar(rawString string, fsSeparator string, pathAvailable bool, b
|
|||
return match
|
||||
case "{blob_path}":
|
||||
if blobAvailable {
|
||||
return filepath.Dir(completeBlobPath) + fsSeparator
|
||||
return path.Dir(completeBlobPath) + fsSeparator
|
||||
}
|
||||
return match
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in New Issue