mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
2f4c709391
ChangeLog: https://github.com/go-gitea/gitea/releases/tag/v1.12.4 This release fixes a few security bugs: * https://github.com/go-gitea/gitea/issues?q=label%3Abackport%2Fv1.12+label%3Akind%2Fsecurity+is%3Aclosed
14 lines
566 B
Diff
14 lines
566 B
Diff
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
|
|
index 45e55a2..9d18ee4 100644
|
|
--- a/modules/setting/setting.go
|
|
+++ b/modules/setting/setting.go
|
|
@@ -667,7 +667,7 @@ func NewContext() {
|
|
OfflineMode = sec.Key("OFFLINE_MODE").MustBool()
|
|
DisableRouterLog = sec.Key("DISABLE_ROUTER_LOG").MustBool()
|
|
if len(StaticRootPath) == 0 {
|
|
- StaticRootPath = AppWorkPath
|
|
+ StaticRootPath = "@data@"
|
|
}
|
|
StaticRootPath = sec.Key("STATIC_ROOT_PATH").MustString(StaticRootPath)
|
|
StaticCacheTime = sec.Key("STATIC_CACHE_TIME").MustDuration(6 * time.Hour)
|