Affected by GO-2022-1065
and 3 other vulnerabilities
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-3056 : Gitea Cross-site Scripting Vulnerability in code.gitea.io/gitea
Discover Packages
code.gitea.io/gitea
modules
templates
vars
package
Version:
v1.17.0
Opens a new window with list of versions in this module.
Published: Jul 30, 2022
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
Documentation
¶
Expand replaces all variables like {var} by `vars` map, it always returns the expanded string regardless of errors
if error occurs, the error part doesn't change and is returned as it is.
ErrVarMissing represents an error that no matched variable
type ErrWrongSyntax struct {
Template string
}
ErrWrongSyntax represents a wrong syntax with a template
Source Files
¶
Click to show internal directories.
Click to hide internal directories.