Commit 8abf1ae
committed
bug symfony#59525 [HtmlSanitizer] Fix access to undefined keys in UrlSanitizer (Antoine Beyet)
This PR was merged into the 6.4 branch.
Discussion
----------
[HtmlSanitizer] Fix access to undefined keys in UrlSanitizer
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fix symfony#59524
| License | MIT
This PR fixes the bug highlighted in symfony#59524 and adds the unit test used to prove the error.
Commits
-------
c1d8c39 [HtmlSanitizer] Avoid accessing non existent array key when checking for hosts validityFile tree
2 files changed
+10
-1
lines changed- src/Symfony/Component/HtmlSanitizer
- Tests/TextSanitizer
- TextSanitizer
2 files changed
+10
-1
lines changedLines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
277 | 286 | | |
278 | 287 | | |
279 | 288 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| |||
0 commit comments