This repository was archived by the owner on Aug 1, 2024. It is now read-only.
Commit c79ab48
Automated g4 rollback of changelist 214621663.
*** Reason for rollback ***
This introduced an XSS in GWS. b/125799080
*** Original change description ***
Fix(safedomtreeprocessor): closing empty element using XML style /> not valid on IE cause by IE's XMLSerializer
- use innerHTML instead of XMLSerializer to get string version of sanitized HTML tree
- added test for this issue
- updated affected test http://sponge/54fb1dcf-8d59-4b42-9faf-9702b24466c1
demo: http://pmelendez.pit.corp.google.com:8888/search?q=nintendo+switch&e=4197585
RELNOTES: Fix safedomtreeprocessor.processToString closing empty element using /> on IE.
***
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=2352042751 parent a2daa5f commit c79ab48
File tree
3 files changed
+8
-16
lines changed- closure/goog/html/sanitizer
3 files changed
+8
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1648 | 1648 | | |
1649 | 1649 | | |
1650 | 1650 | | |
1651 | | - | |
| 1651 | + | |
1652 | 1652 | | |
1653 | 1653 | | |
1654 | 1654 | | |
1655 | | - | |
| 1655 | + | |
1656 | 1656 | | |
1657 | 1657 | | |
1658 | 1658 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
114 | 117 | | |
115 | 118 | | |
116 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | 76 | | |
88 | 77 | | |
89 | 78 | | |
| |||
0 commit comments