mirror of
https://github.com/go-gitea/gitea
synced 2025-07-05 18:17:19 +00:00
Use filepath.Join instead of path.Join for file system file operations (#33978)
This commit is contained in:
@ -5,7 +5,6 @@ package setting
|
||||
|
||||
import (
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"text/template"
|
||||
@ -111,7 +110,7 @@ func loadSSHFrom(rootCfg ConfigProvider) {
|
||||
}
|
||||
homeDir = strings.ReplaceAll(homeDir, "\\", "/")
|
||||
|
||||
SSH.RootPath = path.Join(homeDir, ".ssh")
|
||||
SSH.RootPath = filepath.Join(homeDir, ".ssh")
|
||||
serverCiphers := sec.Key("SSH_SERVER_CIPHERS").Strings(",")
|
||||
if len(serverCiphers) > 0 {
|
||||
SSH.ServerCiphers = serverCiphers
|
||||
|
Reference in New Issue
Block a user