You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to check if the path is valid so it is not pointing to a higher directory than the uploads directory when using my PHP script for uploading files. But I need it to work with non existing paths too. I need something like os.path.normpath() from Python.
The text was updated successfully, but these errors were encountered:
I need something like os.path.normpath() from Python.
It seems to me that this can be written in userland (not particularly difficult), but it would ignore any (sym)links, so it might not be the best idea.
Description
I need to check if the path is valid so it is not pointing to a higher directory than the uploads directory when using my PHP script for uploading files. But I need it to work with non existing paths too. I need something like os.path.normpath() from Python.
The text was updated successfully, but these errors were encountered: