gitea: 1.12.3 -> 1.12.4
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
This commit is contained in:
parent
86a1a0a68d
commit
2f4c709391
@ -8,11 +8,11 @@ with stdenv.lib;
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "gitea";
|
||||
version = "1.12.3";
|
||||
version = "1.12.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/go-gitea/gitea/releases/download/v${version}/gitea-src-${version}.tar.gz";
|
||||
sha256 = "05z1pp2lnbr82pw97wy0j0qk2vv1qv9c46df13d03xdfsc3gsm50";
|
||||
sha256 = "0zz3mwf1yhncvi6pl52lcwbl7k4kkrqyw8q3476akwszjn79n83c";
|
||||
};
|
||||
|
||||
unpackPhase = ''
|
||||
|
@ -1,13 +1,13 @@
|
||||
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
|
||||
index 714015c47..a2f85337e 100644
|
||||
index 45e55a2..9d18ee4 100644
|
||||
--- a/modules/setting/setting.go
|
||||
+++ b/modules/setting/setting.go
|
||||
@@ -641,7 +641,7 @@ func NewContext() {
|
||||
PortToRedirect = sec.Key("PORT_TO_REDIRECT").MustString("80")
|
||||
@@ -667,7 +667,7 @@ func NewContext() {
|
||||
OfflineMode = sec.Key("OFFLINE_MODE").MustBool()
|
||||
DisableRouterLog = sec.Key("DISABLE_ROUTER_LOG").MustBool()
|
||||
- StaticRootPath = sec.Key("STATIC_ROOT_PATH").MustString(AppWorkPath)
|
||||
+ StaticRootPath = sec.Key("STATIC_ROOT_PATH").MustString("@data@")
|
||||
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)
|
||||
AppDataPath = sec.Key("APP_DATA_PATH").MustString(path.Join(AppWorkPath, "data"))
|
||||
EnableGzip = sec.Key("ENABLE_GZIP").MustBool()
|
||||
|
Loading…
Reference in New Issue
Block a user