No longer endorse relative paths

This commit is contained in:
mtkennerly 2024-04-01 22:43:14 -04:00
parent c0b0761cbb
commit 89f80086a2
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408
4 changed files with 12 additions and 43 deletions

View file

@ -706,7 +706,11 @@ impl WikiPath {
}
pub fn usable(&self) -> bool {
!self.composite.is_empty() && !self.irregular() && !self.too_broad()
!self.composite.is_empty()
&& !self.irregular()
&& !self.too_broad()
&& !self.composite.starts_with("./")
&& !self.composite.starts_with("../")
}
}