Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SanitizeFilename ¶
SanitizeFilename removes or replaces characters that are unsafe in filenames
func ValidateDQLQuery ¶
ValidateDQLQuery performs basic validation on a DQL query string. This is a lightweight check to catch obvious issues.
func ValidateEditorPath ¶
ValidateEditorPath validates that an editor path is safe to execute. It checks that: - The path is not empty - The path does not contain shell metacharacters - The executable exists and is executable - The path is not a directory
func ValidateFilePath ¶
ValidateFilePath validates a file path for safety. It checks for: - Directory traversal attempts (../) - Null bytes - Absolute paths when not expected
Types ¶
This section is empty.