[wp-trac] [WordPress Trac] #61834: class-wp-site-health-auto-updates.php triggers error when basedir restrictions in effect
WordPress Trac
noreply at wordpress.org
Wed Aug 7 07:41:43 UTC 2024
#61834: class-wp-site-health-auto-updates.php triggers error when basedir
restrictions in effect
-------------------------------+-------------------------------
Reporter: Keffr3n | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Filesystem API | Version: 6.6.1
Severity: normal | Keywords: changes-requested
Focuses: php-compatibility |
-------------------------------+-------------------------------
Hello, for security reasons, the php pools serving my wordpress instances
are isolated with open_basedir directive.
For site example.com, it's basedir is fixed to /www/example.com.
But in class-wp-site-health-auto-updates.php, paths outside this directory
are tested: /.git, /www/.git and this throws errors.
instead of testing with is_dir, could you test also for access? like with
is_readable()?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61834>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list