Affected by GO-2022-0450
and 6 other vulnerabilities
GO-2022-0450 : Shell command injection in gitea in code.gitea.io/gitea
GO-2022-0612 : Stored Cross-site Scripting in gitea in code.gitea.io/gitea
GO-2022-1065 : Gitea vulnerable to Argument Injection in code.gitea.io/gitea
GO-2023-1894 : code.gitea.io/gitea Open Redirect vulnerability
GO-2023-1999 : Gitea erroneous repo clones in code.gitea.io/gitea
GO-2024-2769 : Gitea allowed assignment of private issues in code.gitea.io/gitea
GO-2024-3056 : Gitea Cross-site Scripting Vulnerability in code.gitea.io/gitea
Discover Packages
code.gitea.io/gitea
models
appstate
package
Version:
v1.16.6
Opens a new window with list of versions in this module.
Published: Apr 20, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Index Constants Variables Functions Types GetAppStateContent(key) SaveAppStateContent(key, content) type AppState
Documentation
¶
GetAppStateContent gets an app state from database
SaveAppStateContent saves the app state item to database
type AppState struct {
ID string `xorm:"pk varchar(200)"`
Revision int64
Content string `xorm:"LONGTEXT"`
}
AppState represents a state record in database
if one day we would make Gitea run as a cluster,
we can introduce a new field `Scope` here to store different states for different nodes
Source Files
¶
Click to show internal directories.
Click to hide internal directories.