Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2019-08-28 18:51:40 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-08-28 18:51:40 +0300
commit01bd22929fdb2c7ec0f564faee46c0ad84d11687 (patch)
tree327a30c65b64e6e109e0496069c7f8bfbe7950f8 /source
parentd5192d6fd64959ccede2b9a0014f8b411dec225c (diff)
Fix T69221: inconsistent handling of filenames derived from image names.
We did not properly sanitize image data block name when using it to init file name...
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_image/image_ops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_image/image_ops.c b/source/blender/editors/space_image/image_ops.c
index 7ea693f2fd2..e338a450db6 100644
--- a/source/blender/editors/space_image/image_ops.c
+++ b/source/blender/editors/space_image/image_ops.c
@@ -1773,6 +1773,7 @@ static int image_save_options_init(Main *bmain,
}
else {
BLI_snprintf(opts->filepath, sizeof(opts->filepath), "//%s", ima->id.name + 2);
+ BLI_path_make_safe(opts->filepath);
BLI_path_abs(opts->filepath, is_prev_save ? G.ima : BKE_main_blendfile_path(bmain));
}
}