Repository navigation
Commit cbaa4a4
fix(google): HTML-escape the emoji in the reaction email's html fallback
The reaction email's text/html fallback interpolated the emoji directly
into markup. A real emoji never contains HTML metacharacters, but the
value is ultimately a user-supplied reaction string (only custom-emoji
refs are pre-filtered, not arbitrary content), so escape it to keep the
outbound email's HTML body free of markup injection. The text/plain and
JSON reaction parts were already safe (base64 / JSON-encoded).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 0222695 commit cbaa4a4
2 files changed
Lines changed: 33 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
664 | 664 | | |
665 | 665 | | |
666 | 666 | | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
667 | 684 | | |
668 | 685 | | |
669 | 686 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1883 | 1883 | | |
1884 | 1884 | | |
1885 | 1885 | | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
1886 | 1896 | | |
1887 | 1897 | | |
1888 | 1898 | | |
| |||
1928 | 1938 | | |
1929 | 1939 | | |
1930 | 1940 | | |
1931 | | - | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
1932 | 1947 | | |
1933 | 1948 | | |
1934 | 1949 | | |
| |||
0 commit comments