diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-26 12:17:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-26 12:17:37 +0000 |
commit | 0cb9711a157a78576f196498f4adf2b809c207fc (patch) | |
tree | 5c07f4a24f9478c906e28bfee5afaf877f553187 | |
parent | 89e6dfff717e2c2e57009fdabb0ed2b4f57b98a2 (diff) | |
parent | 187323a606bc0e4913240e5f20c51c9789234654 (diff) | |
download | stable-diffusion-webui-gfx803-0cb9711a157a78576f196498f4adf2b809c207fc.tar.gz stable-diffusion-webui-gfx803-0cb9711a157a78576f196498f4adf2b809c207fc.tar.bz2 stable-diffusion-webui-gfx803-0cb9711a157a78576f196498f4adf2b809c207fc.zip |
Merge pull request #12020 from Littleor/dev
Fix the error in rendering the name and description in the extra network UI.
-rw-r--r-- | modules/ui_extra_networks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ui_extra_networks.py b/modules/ui_extra_networks.py index 49612298..f2752f10 100644 --- a/modules/ui_extra_networks.py +++ b/modules/ui_extra_networks.py @@ -253,7 +253,7 @@ class ExtraNetworksPage: "prompt": item.get("prompt", None),
"tabname": quote_js(tabname),
"local_preview": quote_js(item["local_preview"]),
- "name": item["name"],
+ "name": html.escape(item["name"]),
"description": (item.get("description") or "" if shared.opts.extra_networks_card_show_desc else ""),
"card_clicked": onclick,
"save_card_preview": '"' + html.escape(f"""return saveCardPreview(event, {quote_js(tabname)}, {quote_js(item["local_preview"])})""") + '"',
|