mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
access control: strip whitespace in hashes, ignore empty lines
This commit is contained in:
parent
f909febf17
commit
6bdb50df8a
1 changed files with 5 additions and 0 deletions
|
|
@ -64,6 +64,11 @@ impl AccessList {
|
|||
|
||||
for line in reader.lines() {
|
||||
let line = line?;
|
||||
let line = line.trim();
|
||||
|
||||
if line.is_empty() {
|
||||
continue;
|
||||
}
|
||||
|
||||
new_list
|
||||
.insert_from_line(&line)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue