test(csp): cover encoded commas across policy parsing and URL matching

This commit is contained in:
ldm0
2026-10-05 05:17:15 +08:00
committed by Donough Liu
parent d3f7407472
commit d89d17a568
@@ -2224,6 +2224,11 @@ mod tests {
"https://cdn.test/foo%2cbar",
true,
),
(
"img-src https://cdn.test/foo%2cbar",
"https://cdn.test/foo,bar",
true,
),
(
", , img-src * , , img-src 'none', ,",
"https://cdn.test/asset",