Affected by GO-2022-0310
and 18 other vulnerabilities
GO-2022-0310: Capture-replay in Gitea in code.gitea.io/gitea
GO-2022-0315: Reuse of one time passwords allowed in Gitea in code.gitea.io/gitea
GO-2022-0353: Path Traversal in Gitea in code.gitea.io/gitea
GO-2022-0442: Arbitrary file deletion in gitea in code.gitea.io/gitea
GO-2022-0450: Shell command injection in gitea in code.gitea.io/gitea
GO-2022-0609: Gitea Missing Authorization vulnerability in code.gitea.io/gitea
GO-2022-0612: Stored Cross-site Scripting in gitea in code.gitea.io/gitea
GO-2022-0830: Denial of Service in Gitea in code.gitea.io/gitea
GO-2022-0832: Cross-site Scripting in Gitea in code.gitea.io/gitea
GO-2022-0844: Gitea Remote Code Execution (RCE) in code.gitea.io/gitea
GO-2022-0982: Improper Privilege Management 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-1922: Gitea XSS Vulnerability in code.gitea.io/gitea
GO-2023-1971: Gogs and Gitea SSRF Vulnerability in code.gitea.io/gitea
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
package
Version:
v1.2.1
Opens a new window with list of versions in this module.
Published: Oct 16, 2017
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 451
Opens a new window with list of known importers.
Documentation
¶
-
func IsReadmeFile(name string) bool
-
func ReadmeFileType(name string) (string, bool)
-
func RegisterParser(parser Parser)
-
func Render(filename string, rawBytes []byte, urlPrefix string, metas map[string]string) []byte
-
func RenderString(filename string, raw, urlPrefix string, metas map[string]string) string
-
func RenderWiki(filename string, rawBytes []byte, urlPrefix string, metas map[string]string) string
-
func Type(filename string) string
-
type Parser
IsReadmeFile reports whether name looks like a README file
based on its name.
ReadmeFileType reports whether name looks like a README file
based on its name and find the parser via its ext name
func RegisterParser(parser Parser)
RegisterParser registers a new markup file parser
Render renders markup file to HTML with all specific handling stuff.
RenderString renders Markdown to HTML with special links and returns string type.
RenderWiki renders markdown wiki page to HTML and return HTML string
Type returns if markup format via the filename
Parser defines an interface for parsering markup file to HTML
Source Files
¶
Click to show internal directories.
Click to hide internal directories.