I noticed the check for "/." in the path and I chuckled.
I think if you strip all leading forward slashes and check for "/." then you may have it be "secure" on linux at least.
Your best bet for fixing this on windows is making sure the code never compiles on windows because god knows what on earth the path handling is like on windows.
I noticed the check for "/." in the path and I chuckled.
I think if you strip all leading forward slashes and check for "/." then you may have it be "secure" on linux at least.
Your best bet for fixing this on windows is making sure the code never compiles on windows because god knows what on earth the path handling is like on windows.