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

This commit is contained in:
ldm0
2026-10-04 08:51:26 +08:00
parent 7106a4e4b6
commit c0c26ca074
@@ -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",