Skip to content

Commit 4af988e

Browse files
committed
add all C0 controls and add U+007F to is_invalid_domain_char
1 parent 9f438e8 commit 4af988e

File tree

2 files changed

+65
-588
lines changed

2 files changed

+65
-588
lines changed

url/src/host.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ impl Host<String> {
9292
let is_invalid_domain_char = |c| {
9393
matches!(
9494
c,
95-
'\0' | '\t'
96-
| '\n'
97-
| '\r'
95+
| '\0'..='\u{001F}'
9896
| ' '
9997
| '#'
10098
| '%'
@@ -108,6 +106,7 @@ impl Host<String> {
108106
| '\\'
109107
| ']'
110108
| '^'
109+
| '\u{007F}'
111110
)
112111
};
113112

0 commit comments

Comments
 (0)