Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAllowedDomain ¶
IsAllowedDomain checks if the given URL's domain is in the allowed list.
func SanitizeLog ¶
SanitizeLog removes or escapes control characters like CRLF to prevent log injection.
func ValidatePath ¶
ValidatePath ensures that the given path is within the base directory. It returns the cleaned absolute path or an error if the path escapes the base.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.