Skip to main content

ui_fragment_path_valid

Function ui_fragment_path_valid 

Source
pub fn ui_fragment_path_valid(relative: &str) -> bool
Expand description

Validates an app-relative fragment path and rejects traversal or control bytes.

§Parameters

§Returns

Returns true when the condition checked by crate::runtime::ui::ui_fragment_path_valid holds and false otherwise.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::ui::ui_fragment_path_valid.

§Examples

ⓘ
let _result = pharos_native::runtime::ui::ui_fragment_path_valid(todo!());