Skip to content
Snippets Groups Projects
Commit f709cdd8 authored by Stephen Mustgrave's avatar Stephen Mustgrave
Browse files

Issue #3450318 by coffeemakr: Path traversal check is done twice

parent c6563a75
No related branches found
No related tags found
No related merge requests found
Pipeline #186636 passed with warnings
......@@ -76,11 +76,6 @@ class StageFileProxySubscriber implements EventSubscriberInterface {
return;
}
// Disallow directory traversal.
if (in_array('..', explode('/', $request_path))) {
return;
}
// Moving to parent directory is insane here, so prevent that.
if (in_array('..', explode('/', $request_path))) {
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment