From c22d66590e86ba27f99b79332f0ea1fd46e8ec83 Mon Sep 17 00:00:00 2001 From: Georgii Surkov <37121527+gsurkov@users.noreply.github.com> Date: Mon, 25 Jul 2022 14:23:47 +0300 Subject: [PATCH] [FL-2682] Allow spaces in file names #1444 --- lib/toolbox/path.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/toolbox/path.c b/lib/toolbox/path.c index 607671fb..767742ac 100644 --- a/lib/toolbox/path.c +++ b/lib/toolbox/path.c @@ -102,7 +102,7 @@ bool path_contains_only_ascii(const char* path) { } else if((*name_pos >= 'a') && (*name_pos <= 'z')) { name_pos++; continue; - } else if(strchr(".!#\\$%&'()-@^_`{}~", *name_pos) != NULL) { + } else if(strchr(" .!#\\$%&'()-@^_`{}~", *name_pos) != NULL) { name_pos++; continue; } @@ -111,4 +111,4 @@ bool path_contains_only_ascii(const char* path) { } return true; -} \ No newline at end of file +}