Commit d4a1644
committed
HTML API: Prevent adding dangerous double-escape SCRIPT contents.
Prevent WP_Tag_Processor::set_modifiable_text() from allowing SCRIPT contents with "<script" like it does with "</script". Either of these sequences may affect the script element's close.
Developed in WordPress/wordpress-develop#9560.
Props jonsurrell, westonruter, dmsnell.
See #63738.
Built from https://develop.svn.wordpress.org/trunk@60706
git-svn-id: http://core.svn.wordpress.org/trunk@60042 1a063a9b-81f0-0310-95a4-ce76da25c4cd1 parent e30a48d commit d4a1644
File tree
2 files changed
+20
-9
lines changed- wp-includes
- html-api
2 files changed
+20
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3780 | 3780 | | |
3781 | 3781 | | |
3782 | 3782 | | |
3783 | | - | |
| 3783 | + | |
3784 | 3784 | | |
3785 | | - | |
3786 | | - | |
3787 | | - | |
| 3785 | + | |
| 3786 | + | |
| 3787 | + | |
| 3788 | + | |
| 3789 | + | |
3788 | 3790 | | |
3789 | | - | |
3790 | | - | |
3791 | | - | |
| 3791 | + | |
| 3792 | + | |
| 3793 | + | |
| 3794 | + | |
| 3795 | + | |
| 3796 | + | |
| 3797 | + | |
| 3798 | + | |
| 3799 | + | |
3792 | 3800 | | |
3793 | | - | |
| 3801 | + | |
| 3802 | + | |
| 3803 | + | |
| 3804 | + | |
3794 | 3805 | | |
3795 | 3806 | | |
3796 | 3807 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments