Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
Commit98f511e
committed
feature#57399 [HtmlSanitizer] Add support for configuring the default action (Seldaek)
This PR was merged into the 7.2 branch.Discussion----------[HtmlSanitizer] Add support for configuring the default action| Q | A| ------------- | ---| Branch? | 7.2| Bug fix? | no| New feature? | yes| Deprecations? | no| Issues |Fix#48358| License | MITThe default action can be set to block or allow unconfigured elements instead of dropping themKinda replaces#49920 but it would need some work on the configuration handling side to allow configuring default actions. I am just using this as a library so I am not so keen on doing that part sorry but maybe `@Neirda24` might want to take care of it if this PR gets accepted.Commits-------4fd1c4c [HtmlSanitizer] Add support for configuring the default action to block or allow unconfigured elements instead of dropping themFile tree
6 files changed
+150
-24
lines changed- src/Symfony/Component/HtmlSanitizer
- Tests
- Visitor
6 files changed
+150
-24
lines changedLines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
4 | 9 |
| |
5 | 10 |
| |
6 | 11 |
| |
|
Lines changed: 14 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
103 | 103 |
| |
104 | 104 |
| |
105 | 105 |
| |
106 |
| - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
107 | 113 |
| |
108 | 114 |
| |
109 | 115 |
| |
| |||
119 | 125 |
| |
120 | 126 |
| |
121 | 127 |
| |
122 |
| - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
123 | 135 |
| |
124 | 136 |
| |
125 | 137 |
| |
|
Lines changed: 30 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + |
Lines changed: 42 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
22 | 31 |
| |
23 | 32 |
| |
24 | 33 |
| |
| |||
99 | 108 |
| |
100 | 109 |
| |
101 | 110 |
| |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
102 | 124 |
| |
103 | 125 |
| |
104 | 126 |
| |
| |||
261 | 283 |
| |
262 | 284 |
| |
263 | 285 |
| |
264 |
| - | |
265 |
| - | |
| 286 | + | |
| 287 | + | |
266 | 288 |
| |
267 | 289 |
| |
268 | 290 |
| |
| |||
284 | 306 |
| |
285 | 307 |
| |
286 | 308 |
| |
287 |
| - | |
288 |
| - | |
| 309 | + | |
| 310 | + | |
289 | 311 |
| |
290 | 312 |
| |
291 | 313 |
| |
| |||
300 | 322 |
| |
301 | 323 |
| |
302 | 324 |
| |
303 |
| - | |
| 325 | + | |
304 | 326 |
| |
305 | 327 |
| |
306 | 328 |
| |
307 | 329 |
| |
308 | 330 |
| |
309 | 331 |
| |
| 332 | + | |
| 333 | + | |
310 | 334 |
| |
311 | 335 |
| |
312 | 336 |
| |
| |||
426 | 450 |
| |
427 | 451 |
| |
428 | 452 |
| |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
429 | 458 |
| |
430 | 459 |
| |
431 | 460 |
| |
| |||
442 | 471 |
| |
443 | 472 |
| |
444 | 473 |
| |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
445 | 482 |
| |
446 | 483 |
| |
447 | 484 |
| |
|
Lines changed: 22 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| 16 | + | |
16 | 17 |
| |
17 | 18 |
| |
18 | 19 |
| |
| |||
578 | 579 |
| |
579 | 580 |
| |
580 | 581 |
| |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
581 | 603 |
|
Lines changed: 37 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| 14 | + | |
14 | 15 |
| |
15 | 16 |
| |
16 | 17 |
| |
| |||
33 | 34 |
| |
34 | 35 |
| |
35 | 36 |
| |
| 37 | + | |
| 38 | + | |
36 | 39 |
| |
37 | 40 |
| |
38 | 41 |
| |
| |||
49 | 52 |
| |
50 | 53 |
| |
51 | 54 |
| |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 |
| - | |
56 |
| - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
57 | 60 |
| |
58 | 61 |
| |
59 | 62 |
| |
| |||
68 | 71 |
| |
69 | 72 |
| |
70 | 73 |
| |
| 74 | + | |
| 75 | + | |
71 | 76 |
| |
72 | 77 |
| |
73 | 78 |
| |
| |||
82 | 87 |
| |
83 | 88 |
| |
84 | 89 |
| |
85 |
| - | |
86 |
| - | |
87 |
| - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
88 | 94 |
| |
89 |
| - | |
90 |
| - | |
91 |
| - | |
92 |
| - | |
93 |
| - | |
94 | 95 |
| |
95 | 96 |
| |
96 |
| - | |
| 97 | + | |
97 | 98 |
| |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
98 | 116 |
| |
99 |
| - | |
| 117 | + | |
100 | 118 |
| |
101 | 119 |
| |
102 | 120 |
| |
103 | 121 |
| |
104 | 122 |
| |
105 |
| - | |
| 123 | + | |
106 | 124 |
| |
107 | 125 |
| |
108 | 126 |
| |
109 | 127 |
| |
110 |
| - | |
| 128 | + | |
111 | 129 |
| |
112 | 130 |
| |
113 | 131 |
| |
| |||
116 | 134 |
| |
117 | 135 |
| |
118 | 136 |
| |
| 137 | + | |
| 138 | + | |
119 | 139 |
| |
120 | 140 |
| |
121 | 141 |
| |
|
0 commit comments
Comments
(0)