New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_ss_environment checks break under open_basedir #1866
Comments
Hi @simonwelsh I thought about this with the patch, but that'd be the case with the old way too. If PHP wasn't allowed outside the webroot, then the same error would have happened. It is a warning, not an error, so we can't do We could add a |
Ok, so I've submitted a patch for this issue. There were a couple things wrong with the logic that I've now fixed. The environment file spider logic was only using the It also checks the dir is readable whilst suppressing the warnings that would come out due to @chillu some peer review is welcome :) |
@chillu Ok, I re-jigged this quite a bit (again) so that it's using dirname, not arrays or exploding on |
With be78098 (by @dhensby, merged by @chillu), the entire directory path is searched for _ss_environment.php. If there's an open_basedir() in effect, it's rather unlikely to allow this to happen.
The text was updated successfully, but these errors were encountered: