Fix T45424: Blender able to create folders with invalid characters at the end of...
authorBastien Montagne <montagne29@wanadoo.fr>
Tue, 14 Jul 2015 16:48:51 +0000 (18:48 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Tue, 14 Jul 2015 16:57:38 +0000 (18:57 +0200)
commit8a17918555d9ba8c7f420deda35b77ffa8d3850e
treeb5cbdc6c21ebd53bbf66e80fdac880a203a20e3f
parentd7b9202567199cb769305d4037eefbba71dda3f9
Fix T45424: Blender able to create folders with invalid characters at the end of the name.

In fact, filebrowser was not making any checks for invalid file/dir names here!

Added checks in the three places that should be protected:
* Renaming.
* Creating dirs.
* Typing in filename field.
source/blender/editors/space_file/file_draw.c
source/blender/editors/space_file/file_ops.c