Affected by GO-2022-1060
and 3 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
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: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
CurrentUsername returns the username of the current user.
IsDir returns true if given path is a directory, and returns false when it's
a file or does not exist.
IsExist returns true if a file or directory exists.
IsFile returns true if given path exists as a file (i.e. not a directory).
NewError wraps given error.
Error is a wrapper of an OS error, which handles not found.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.