We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9832b95 commit b9abcb3Copy full SHA for b9abcb3
modules/setting/setting.go
@@ -1392,7 +1392,7 @@ func newSessionService() {
1392
SessionConfig.Provider = Cfg.Section("session").Key("PROVIDER").In("memory",
1393
[]string{"memory", "file", "redis", "mysql"})
1394
SessionConfig.ProviderConfig = strings.Trim(Cfg.Section("session").Key("PROVIDER_CONFIG").MustString(path.Join(AppDataPath, "sessions")), "\" ")
1395
- if !filepath.IsAbs(SessionConfig.ProviderConfig) {
+ if SessionConfig.Provider == "file" && !filepath.IsAbs(SessionConfig.ProviderConfig) {
1396
SessionConfig.ProviderConfig = path.Join(AppWorkPath, SessionConfig.ProviderConfig)
1397
}
1398
SessionConfig.CookieName = Cfg.Section("session").Key("COOKIE_NAME").MustString("i_like_gitea")
0 commit comments