StringVariable's ToFile - Relax File extension and path#3212
Conversation
a836f71 to
99379cc
Compare
|
Does this open an issue with path traversal: |
|
I guess not, the default behavior allows leaving the my code, simply moves the text file from |
|
In an ideal world where Maniac Patch and TPC are open source and not obfuscated I would suggest to add a new flag to indicate "absolute path". End of rant This is a bit opinionated but I do not like the Can you add a comment that this is an EasyRPG Extension? (Also please remove trivial comments like |
731f1ef to
57c15fc
Compare
b5730fb to
b69bdd8
Compare
When saving a file, maniacs forces the File in Text/ folder with .txt extension. Through this PR, if '*' is at the end of filename, the file extension is relaxed. It also better handles the creation of nested directories.
b69bdd8 to
d516336
Compare
…elax-StringVars-ToFile StringVariable's ToFile - Relax File extension and path
When saving a file, maniacs forces the File in Text/ folder with .txt extension.
Through this PR, if '*' is at the end of filename, the file extension is relaxed.