Explorar el Código

[FL-2682] Allow spaces in file names #1444

Georgii Surkov hace 3 años
padre
commit
c22d66590e
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      lib/toolbox/path.c

+ 2 - 2
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;
-}
+}