Skip to content

Conversation

@drbyte
Copy link
Contributor

@drbyte drbyte commented Dec 27, 2019

After running valet directory-listing on if a URI points to a directory that exists, but the requested file cannot be found in that directory, a directory listing will be displayed.

A 404 will still happen if the project directory cannot be found.

Running valet directory-listing off makes a 404 display (without a listing) if the requested file cannot be found.

Supersedes and Closes #349 and Closes #587

After running `valet directory-listing on` if a URI points to a directory that exists, but the requested file cannot be found in that directory, a directory listing will be displayed.

A 404 will still happen if the project directory cannot be found.

Running `valet directory-listing off` makes a 404 display (without a listing) if the requested file cannot be found.

Supercedes and closes laravel#349 and closes laravel#587
@mattstauffer
Copy link
Collaborator

Gonna save this for the next release so I can do another read-over and test it out.

@mattstauffer mattstauffer merged commit 0e4fe40 into laravel:master Jan 7, 2020
@mattstauffer
Copy link
Collaborator

Merging but pausing on a release for a sec. Want to test it a bit through actual Composer.

@drbyte drbyte deleted the dirlist branch January 7, 2020 16:50
@mattstauffer
Copy link
Collaborator

Works great so far. Just trying to make sure we're not accidentally opening up the ability for someone to pass some kind of wonky folder in and then get access to your entire personal documents folder or whatever. Obviously this isn't meant to be open to the public but still.. i'd love to get ahead of that if it were possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants