pub struct PathSecurityChecker { /* private fields */ }Expand description
Path security checker for preventing path-based attacks
Implementations§
Source§impl PathSecurityChecker
impl PathSecurityChecker
Sourcepub fn check_path_security(path: &Path) -> PathResult<bool>
pub fn check_path_security(path: &Path) -> PathResult<bool>
Sourcepub fn check(&self, path: &Path) -> PathResult<bool>
pub fn check(&self, path: &Path) -> PathResult<bool>
Sourcepub fn sanitize_path(path: &str) -> String
pub fn sanitize_path(path: &str) -> String
Sanitize path by removing dangerous characters
Trait Implementations§
Source§impl Clone for PathSecurityChecker
impl Clone for PathSecurityChecker
Source§fn clone(&self) -> PathSecurityChecker
fn clone(&self) -> PathSecurityChecker
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PathSecurityChecker
impl Debug for PathSecurityChecker
Auto Trait Implementations§
impl Freeze for PathSecurityChecker
impl RefUnwindSafe for PathSecurityChecker
impl Send for PathSecurityChecker
impl Sync for PathSecurityChecker
impl Unpin for PathSecurityChecker
impl UnwindSafe for PathSecurityChecker
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more