Affected by GO-2024-3056
and 6 other vulnerabilities
GO-2024-3056 : Gitea Cross-site Scripting Vulnerability in code.gitea.io/gitea
GO-2025-4258 : Gitea mishandles authorization for deletion of releases in code.gitea.io/gitea
GO-2025-4261 : Gitea allows attackers to add attachments with forbidden file extensions in code.gitea.io/gitea
GO-2025-4263 : Gitea allows XSS because the search input box (for creating tags and branches) is v-html instead of v-text in code.gitea.io/gitea
GO-2025-4264 : Gitea sometimes mishandles propagation of token scope for access control within one of its own package registries in code.gitea.io/gitea
GO-2025-4267 : Gitea doesn't adequately enforce branch deletion permissions after merging a pull request. in code.gitea.io/gitea
GO-2025-4268 : Gitea mishandles access to a private resource upon receiving an API token with scope limited to public resources in code.gitea.io/gitea
Discover Packages
code.gitea.io/gitea
modules
web
routing
package
Version:
v1.21.10
Opens a new window with list of versions in this module.
Published: Mar 25, 2024
License: MIT
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
Documentation
¶
MarkLongPolling marks the request is a long-polling request, and the logger may output different message for it
NewLoggerHandler is a handler that will log routing to the router log taking account of
routing information
UpdateFuncInfo updates a context's func info
UpdatePanicError updates a context's error info, a panic may be recovered by other middlewares, but we still need to know that.
Event indicates when the printer is triggered
const (
StartEvent Event = iota
StillExecutingEvent
EndEvent
)
FuncInfo contains information about the function to be logged by the router log
GetFuncInfo returns the FuncInfo for a provided function and friendlyname
String returns a string form of the FuncInfo for logging
type Printer func(trigger Event , record *requestRecord)
Printer is used to output the log for a request
Source Files
¶
Click to show internal directories.
Click to hide internal directories.