mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 02:35:31 +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() {
|
for line in reader.lines() {
|
||||||
let line = line?;
|
let line = line?;
|
||||||
|
let line = line.trim();
|
||||||
|
|
||||||
|
if line.is_empty() {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
new_list
|
new_list
|
||||||
.insert_from_line(&line)
|
.insert_from_line(&line)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue