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.5.0-rc2
Opens a new window with list of versions in this module.
Published: Jul 21, 2018
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 227
Opens a new window with list of known importers.
Documentation
¶
- Variables
-
func IsMarkdownFile(name string) bool
-
func Render(rawBytes []byte, urlPrefix string, metas map[string]string) []byte
-
func RenderRaw(body []byte, urlPrefix string, wikiMarkdown bool) []byte
-
func RenderString(raw, urlPrefix string, metas map[string]string) string
-
func RenderWiki(rawBytes []byte, urlPrefix string, metas map[string]string) string
-
type Parser
-
type Renderer
-
func (r *Renderer) Image(out *bytes.Buffer, link []byte, title []byte, alt []byte)
-
func (r *Renderer) Link(out *bytes.Buffer, link []byte, title []byte, content []byte)
-
func (r *Renderer) List(out *bytes.Buffer, text func() bool, flags int)
-
func (r *Renderer) ListItem(out *bytes.Buffer, text []byte, flags int)
IsMarkdownFile reports whether name looks like a Markdown file
based on its extension.
Render renders Markdown to HTML with all specific handling stuff.
RenderRaw renders Markdown to HTML without handling special links.
RenderString renders Markdown to HTML with special links and returns string type.
RenderWiki renders markdown wiki page to HTML and return HTML string
Parser implements markup.Parser
Extensions implements markup.Parser
Name implements markup.Parser
Render implements markup.Parser
Renderer is a extended version of underlying render object.
Image defines how images should be processed to produce corresponding HTML elements.
Link defines how formal links should be processed to produce corresponding HTML elements.
List renders markdown bullet or digit lists to HTML
ListItem defines how list items should be processed to produce corresponding HTML elements.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.