Skip to content

Incorrectly path comparisson on Windows servers #3

@aamplugin

Description

@aamplugin

The isAllowed method does not correctly manage file path comparison and on line 280

$isWithinUploads = (strpos($filename, realpath($upload_dir)) !== false);

The $filename has to be wrapped into the realpath() function too.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions