Merge pull request #791 from ellieplayswow/hotfix/hidden-dir-dos

Fixing denial of service where a tab tries to read lines from a .hidden directory
This commit is contained in:
Jeremy Soller 2025-02-05 14:01:20 -07:00 committed by GitHub
commit f823d17524
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -545,7 +545,7 @@ pub fn scan_path(tab_path: &PathBuf, sizes: IconSizes) -> Vec<Item> {
}
};
if name == ".hidden" {
if name == ".hidden" && path.is_file() {
hidden_files = parse_hidden_file(&path);
}