fix: xss vulnerability on renderError
This commit is contained in:
parent
3c7220e4f7
commit
0833e8531d
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ const renderError = (message, secondaryMessage = "") => {
|
||||||
<rect x="0.5" y="0.5" width="494" height="99%" rx="4.5" fill="#FFFEFE" stroke="#E4E2E2"/>
|
<rect x="0.5" y="0.5" width="494" height="99%" rx="4.5" fill="#FFFEFE" stroke="#E4E2E2"/>
|
||||||
<text x="25" y="45" class="text">Something went wrong! file an issue at https://git.io/JJmN9</text>
|
<text x="25" y="45" class="text">Something went wrong! file an issue at https://git.io/JJmN9</text>
|
||||||
<text data-testid="message" x="25" y="55" class="text small">
|
<text data-testid="message" x="25" y="55" class="text small">
|
||||||
<tspan x="25" dy="18">${message}</tspan>
|
<tspan x="25" dy="18">${encodeHTML(message)}</tspan>
|
||||||
<tspan x="25" dy="18" class="gray">${secondaryMessage}</tspan>
|
<tspan x="25" dy="18" class="gray">${secondaryMessage}</tspan>
|
||||||
</text>
|
</text>
|
||||||
</svg>
|
</svg>
|
||||||
|
|
Loading…
Add table
Reference in a new issue