Affected by GO-2022-1060
and 1 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
package
Version:
v0.13.2
Opens a new window with list of versions in this module.
Published: Dec 23, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Clean cleans up given path and returns a relative path that goes straight
down to prevent path traversal.
🚨 SECURITY: This function MUST be used for any user input that is used as
file system path to prevent path traversal.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.