Dont index ELF binaries + remove some non-man-pages

This commit is contained in:
Yorhel 2016-12-18 16:35:25 +01:00
parent d153004532
commit eac4b6ac77
2 changed files with 28 additions and 0 deletions

View file

@ -85,6 +85,8 @@ fn validate(data: &Vec<u8>) -> Option<&'static str> {
Some("Contents: '.so man3/'")
} else if &data[..] == &b"timestamp\n"[..] {
Some("Contents: 'timestamp'")
} else if &data[..] == &b"\x75ELF"[..] {
Some("Looks like an ELF binary")
} else if HTML.is_match(&data) {
Some("Looks like an HTML file")
} else {