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
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2015-10-18 19:51:08 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-10-18 19:51:08 +0300
commita25892543a7a81d6823c71d0bc54978b00e7a9b1 (patch)
treea47fc1f25f49ec1cbc24363ce89bbee0efe892d2 /source/blender
parentf56392f224e6a7fa6b551d10006bea8bb08ebc6c (diff)
Fix T46531: Cannot use % in filenames.
Same case as with space char really, one should not use those special chars in filenames, but they are globally supported by all current FS/OS, so no real reason to enforce that behvior on users here. To be backported to 'a' release.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenlib/intern/path_util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c
index c94ce842b8c..99e512475bb 100644
--- a/source/blender/blenlib/intern/path_util.c
+++ b/source/blender/blenlib/intern/path_util.c
@@ -436,6 +436,7 @@ void BLI_cleanup_file(const char *relabase, char *path)
* \note Space case ' ' is a bit of an edge case here - in theory it is allowed, but again can be an issue
* in some cases, so we simply replace it by an underscore too (good practice anyway).
* REMOVED based on popular demand (see T45900).
+ * Percent '%' char is a bit same case - not recommended to use it, but supported by all decent FS/OS around...
*
* \note On Windows, it also ensures there is no '.' (dot char) at the end of the file, this can lead to issues...
*
@@ -446,7 +447,7 @@ bool BLI_filename_make_safe(char *fname)
{
const char *invalid = "\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
"\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
- "/\\?%*:|\"<>";
+ "/\\?*:|\"<>";
char *fn;
bool changed = false;