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:
commit
f823d17524
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue