Avatar for the aio-libs user
aio-libs
yarl
BlogDocsChangelog

Fix host validation: IPv6 zone ID characters and NFKC percent bypass

#1655Merged
Comparing
rodrigobnogueira:fix-host-validation
(
06047a9
) with
master
(
fbf8cfd
)
CodSpeed Performance Gauge
0%
Untouched
97
Ignored
4

Benchmarks

101 total
test_path_safe
tests/test_url_benchmarks.py
CodSpeed Performance Gauge
+4%
51.3 µs49.3 µs
test_quote_query_string
tests/test_quoting_benchmarks.py
CodSpeed Performance Gauge
+2%
65.4 µs64.4 µs
test_raw_path_qs
tests/test_url_benchmarks.py
CodSpeed Performance Gauge
+1%
50.7 µs50.1 µs
test_update_query_string
tests/test_url_benchmarks.py
CodSpeed Performance Gauge
+1%
404.1 µs400.6 µs
test_url_with_host
tests/test_url_benchmarks.py
CodSpeed Performance Gauge
+1%
364.7 µs361.6 µs
test_unquoter_short
tests/test_quoting_benchmarks.py
CodSpeed Performance Gauge
+1%
115.4 µs114.5 µs
test_quoter_quote_utf8
tests/test_quoting_benchmarks.py
CodSpeed Performance Gauge
+1%
129.8 µs128.8 µs
test_raw_path_qs_with_query
tests/test_url_benchmarks.py
CodSpeed Performance Gauge
-1%
50.6 µs51 µs
test_url_build_access_fragment
tests/test_url_benchmarks.py
CodSpeed Performance Gauge
+1%
472.1 µs469.1 µs
test_url_joinpath
tests/test_url_benchmarks.py
CodSpeed Performance Gauge
-1%
513.1 µs516.2 µs
test_url_build_with_host
tests/test_url_benchmarks.py
CodSpeed Performance Gauge
-1%
394.5 µs396.7 µs
test_url_build_with_host_path_and_port
tests/test_url_benchmarks.py
CodSpeed Performance Gauge
-1%
519.9 µs522.7 µs
test_url_with_password
tests/test_url_benchmarks.py
CodSpeed Performance Gauge
0%
300.4 µs301.7 µs
test_url_build_no_netloc
tests/test_url_benchmarks.py
CodSpeed Performance Gauge
0%
325.6 µs324.2 µs
test_url_make_with_many_hosts
tests/test_url_benchmarks.py
CodSpeed Performance Gauge
0%
3.3 ms3.3 ms
test_update_query_sequence_mapping
tests/test_url_benchmarks.py
CodSpeed Performance Gauge
0%
2.9 ms2.9 ms
test_url_with_port
tests/test_url_benchmarks.py
CodSpeed Performance Gauge
0%
305.9 µs307.1 µs
test_url_build_with_different_hosts
tests/test_url_benchmarks.py
CodSpeed Performance Gauge
0%
1 ms1 ms
test_url_build_encoded_with_host_and_port
tests/test_url_benchmarks.py
CodSpeed Performance Gauge
0%
258.9 µs259.8 µs
test_empty_query_string
tests/test_url_benchmarks.py
CodSpeed Performance Gauge
0%
45 µs44.9 µs
test_url_build_access_raw_host
tests/test_url_benchmarks.py
CodSpeed Performance Gauge
0%
594.3 µs596.2 µs
test_empty_path
tests/test_url_benchmarks.py
CodSpeed Performance Gauge
0%
49.1 µs49.2 µs
test_with_query_mapping
tests/test_url_benchmarks.py
CodSpeed Performance Gauge
0%
518.2 µs516.8 µs
test_url_extend_query_existing_query_string
tests/test_url_benchmarks.py
CodSpeed Performance Gauge
0%
130.6 µs130.2 µs
test_with_query_mapping_int_values
tests/test_url_benchmarks.py
CodSpeed Performance Gauge
0%
840.6 µs842.7 µs

Commits

Click on a commit to change the comparison range
Base
master
fbf8cfd
0%
[pre-commit.ci] auto fixes from pre-commit.com hooks
979a271
3 months ago
by pre-commit-ci[bot]
+0.02%
Address reviewer comments
ad025da
3 months ago
by rodrigobnogueira
+0.01%
Relax zone ID validation: reject CTL characters per RFC 4007/9844
eb19850
3 months ago
by rodrigobnogueira
-0.09%
Merge branch 'master' into fix-host-validation
f786fd3
2 months ago
by bdraco
+0.02%
Merge branch 'master' into fix-host-validation
24c6ebf
2 months ago
by bdraco
+0.13%
Merge branch 'master' into fix-host-validation
5b69d86
2 months ago
by rodrigobnogueira
-0.19%
Avoid reflecting invalid IPv6 zone IDs
4e1b84a
2 months ago
by rodrigobnogueira
+0.05%
Merge branch 'master' into fix-host-validation
bd210eb
2 months ago
by rodrigobnogueira
+0.12%
Address review comments: wording, round-trip, empty-zone
06047a9
2 months ago
by rodrigobnogueira
© 2026 CodSpeed Technology
Home Terms Privacy Docs