mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-13 10:42:55 +01:00
Sanitize error text
This commit is contained in:
parent
d5f6849c8e
commit
2f2a4fca35
@ -1350,7 +1350,7 @@ class PromptManager {
|
|||||||
|
|
||||||
const errorDiv = `
|
const errorDiv = `
|
||||||
<div class="${this.configuration.prefix}prompt_manager_error">
|
<div class="${this.configuration.prefix}prompt_manager_error">
|
||||||
<span class="fa-solid tooltip fa-triangle-exclamation text_danger"></span> ${this.error}
|
<span class="fa-solid tooltip fa-triangle-exclamation text_danger"></span> ${DOMPurify.sanitize(this.error)}
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user