Fix path matching in match-url-to-source-expression (#773) · w3c/webappsec-csp@97e4a82
antosart
·
2025-06-30
·
via Recent Commits to webappsec-csp:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4077,8 +4077,7 @@ Content-Type: application/reports+json
|
4077 | 4077 | 6. If |expression| contains a non-empty <a grammar>`path-part`</a>, and |
4078 | 4078 | |redirect count| is 0, then: |
4079 | 4079 | |
4080 | | - 1. Let |path| be the resulting of joining |url|'s <a for="url">path</a> |
4081 | | - on the U+002F SOLIDUS character (`/`). |
| 4080 | + 1. Let |path| be the result of running the <a>URL path serializer</a> on |url|. |
4082 | 4081 | |
4083 | 4082 | 2. If |expression|'s <a grammar>`path-part`</a> does not <a>`path-part` match</a> |path|, |
4084 | 4083 | return "`Does Not Match`". |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。