Skip to main content

detect_active_version

Function detect_active_version 

Source
pub fn detect_active_version(data_dir: &Path) -> Option<String>
Expand description

Read the active version string from the data directory.

Validates that the version string contains only safe characters (alphanumeric, dots, hyphens) to prevent path traversal attacks.