aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-05-28 07:39:57 +0000
committerAUTOMATIC <16777216c@gmail.com>2023-05-31 19:54:00 +0000
commit10dbee0d59369ba09f89cdaee88a6456492d44da (patch)
treeb123ebaff27d23e002253943ed7b68d50ca4ef8b /modules
parent20ae71faa8ef035c31aa3a410b707d792c8203a3 (diff)
downloadstable-diffusion-webui-gfx803-10dbee0d59369ba09f89cdaee88a6456492d44da.tar.gz
stable-diffusion-webui-gfx803-10dbee0d59369ba09f89cdaee88a6456492d44da.tar.bz2
stable-diffusion-webui-gfx803-10dbee0d59369ba09f89cdaee88a6456492d44da.zip
add quoting for infotext values that have a colon in them
Diffstat (limited to 'modules')
-rw-r--r--modules/generation_parameters_copypaste.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/generation_parameters_copypaste.py b/modules/generation_parameters_copypaste.py
index d5f0a49b..cfc04114 100644
--- a/modules/generation_parameters_copypaste.py
+++ b/modules/generation_parameters_copypaste.py
@@ -35,7 +35,7 @@ def reset():
def quote(text):
- if ',' not in str(text) and '\n' not in str(text):
+ if ',' not in str(text) and '\n' not in str(text) and ':' not in str(text):
return text
return json.dumps(text, ensure_ascii=False)