From 01bd22929fdb2c7ec0f564faee46c0ad84d11687 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 28 Aug 2019 17:51:40 +0200 Subject: 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... --- source/blender/editors/space_image/image_ops.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source') 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)); } } -- cgit v1.2.3