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:
authorAndrea Weikert <elubie@gmx.net>2008-04-30 01:43:17 +0400
committerAndrea Weikert <elubie@gmx.net>2008-04-30 01:43:17 +0400
commitb1d841f2c43430f817e04a0b1f57dda2109021e6 (patch)
tree90e6b0695c4c884b9b9e3336c526b1bd12f9e2e0 /source/blender/src/filesel.c
parent4be6ef57587d5a40fdfd205a10187788a70c5ba8 (diff)
== bugfix ==
fix for [#6580] invalid file names not handled consistently when saving only affects windows, where invisible file stream could be created if filename contains ':'
Diffstat (limited to 'source/blender/src/filesel.c')
-rw-r--r--source/blender/src/filesel.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/src/filesel.c b/source/blender/src/filesel.c
index 138e0faa491..c297edda905 100644
--- a/source/blender/src/filesel.c
+++ b/source/blender/src/filesel.c
@@ -1420,6 +1420,16 @@ static void filesel_execute(SpaceFile *sfile)
return;
}
+#ifdef WIN32
+ if ( (sfile->type!=FILE_LOADLIB) && (sfile->type!=FILE_MAIN) ) {
+ if (!check_file_chars(sfile->file)) {
+ error("You have illegal characters in the filename. Check console for more info.");
+ printf("Characters '*?:|\"<>\\/' are illegal in a filename.\n");
+ return;
+ }
+ }
+#endif
+
filesel_prevspace();
if(sfile->type==FILE_LOADLIB) {