Skip to content

Realpath() alternative for nonexisting paths #17520

Open
@NumbersTada

Description

@NumbersTada

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      close