Affected by GO-2022-1060
and 5 other vulnerabilities
GO-2022-1060 : Gogs vulnerable to Cross-site Scripting in gogs.io/gogs
GO-2024-3275 : Unpatched Remote Code Execution in Gogs in gogs.io/gogs
GO-2024-3355 : Remote Command Execution in file editing in gogs in gogs.io/gogs
GO-2024-3356 : Path Traversal in file update API in gogs in gogs.io/gogs
GO-2025-3776 : Gogs allows deletion of internal files which leads to remote command execution in gogs.io/gogs
GO-2025-3778 : Gogs XSS allowed by stored call in PDF renderer in gogs.io/gogs
Discover Packages
gogs.io/gogs
templates
package
Version:
v0.13.0
Opens a new window with list of versions in this module.
Published: Feb 25, 2023
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func NewTemplateFileSystem(dir, customDir string ) macaron.TemplateFileSystem
NewTemplateFileSystem returns a macaron.TemplateFileSystem instance for embedded assets.
The argument "dir" can be used to serve subset of embedded assets. Template file
found under the "customDir" on disk has higher precedence over embedded assets.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.