Skip to content

Commit 474e1b5

Browse files
committed
add spaces as allowed escape sequences for Usernames
1 parent 9361aae commit 474e1b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sudoers/tokens.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ impl Token for Username {
3333

3434
const ALLOW_ESCAPE: bool = true;
3535
fn escaped(c: char) -> bool {
36-
matches!(c, '\\' | '"' | ',' | ':' | '=' | '!' | '(' | ')')
36+
matches!(c, '\\' | '"' | ',' | ':' | '=' | '!' | '(' | ')' | ' ')
3737
}
3838
}
3939

0 commit comments

Comments
 (0)