Sergey Biryukov
04967a68b6
Upgrade/Install: Introduce WP_Automatic_Updater::is_allowed_dir()
method.
...
As part of determining whether to perform automatic updates, WordPress checks if it is running within a version-controlled environment, recursively looking up the filesystem to the top of the drive, looking for a Subversion, Git, Mercurial, or Bazaar directory, erring on the side of detecting a VCS checkout somewhere.
This commit avoids a PHP warning if the `open_basedir` directive is in use and any of the directories checked in the process are not allowed:
{{{
is_dir(): open_basedir restriction in effect. File(/.git) is not within the allowed path(s)
}}}
Follow-up to [25421], [25700], [25764], [25835], [25859].
Props costdev, markjaquith, meyegui, dd32, arnolp, robin-labadie, hellofromTonya, afragen, pbiron, SergeyBiryukov.
Fixes #42619 .
Built from https://develop.svn.wordpress.org/trunk@55425
git-svn-id: http://core.svn.wordpress.org/trunk@54958 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-02-26 15:19:21 +00:00
..
2023-02-11 17:39:20 +00:00
2022-10-25 14:56:17 +00:00
2023-02-26 15:19:21 +00:00
2023-02-17 09:54:19 +00:00
2023-02-24 15:10:22 +00:00
2023-02-23 22:13:23 +00:00
2020-02-06 06:33:11 +00:00
2023-02-15 23:33:18 +00:00
2022-05-07 16:21:18 +00:00
2021-06-01 11:30:57 +00:00
2020-02-06 06:33:11 +00:00
2022-04-04 18:39:01 +00:00
2022-03-02 15:00:11 +00:00
2022-04-04 18:43:02 +00:00
2022-01-27 22:17:00 +00:00
2022-08-04 14:52:11 +00:00
2023-02-23 10:38:21 +00:00
2022-10-18 15:10:12 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2023-02-23 10:38:21 +00:00
2023-02-23 11:06:19 +00:00
2023-02-23 11:06:19 +00:00
2023-01-18 11:40:10 +00:00
2023-02-07 17:10:21 +00:00
2023-02-23 10:38:21 +00:00
2022-09-20 02:51:09 +00:00
2023-02-23 10:38:21 +00:00
2023-02-23 10:38:21 +00:00
2023-02-23 10:38:21 +00:00
2023-02-23 10:38:21 +00:00
2023-02-23 10:38:21 +00:00
2022-10-25 14:56:17 +00:00
2023-02-23 10:38:21 +00:00
2023-02-23 10:38:21 +00:00
2022-11-20 14:10:15 +00:00
2023-02-07 17:10:21 +00:00
2021-07-22 13:53:00 +00:00
2023-02-23 10:38:21 +00:00
2020-07-05 15:22:01 +00:00
2021-07-27 19:01:59 +00:00
2021-12-12 14:52:02 +00:00
2021-12-12 14:52:02 +00:00
2023-02-23 10:38:21 +00:00
2021-03-07 12:32:09 +00:00
2023-02-23 10:38:21 +00:00
2022-04-07 12:54:03 +00:00
2023-02-07 17:42:24 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2022-11-14 21:57:10 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2023-02-23 22:13:23 +00:00
2023-02-23 10:38:21 +00:00
2023-02-23 10:38:21 +00:00
2023-02-23 10:38:21 +00:00
2023-02-23 11:06:19 +00:00
2019-08-16 00:39:55 +00:00
2023-02-23 10:38:21 +00:00
2023-02-23 11:06:19 +00:00
2023-02-23 10:38:21 +00:00
2023-02-23 10:38:21 +00:00
2023-02-23 10:38:21 +00:00
2022-12-01 22:20:12 +00:00
2023-02-23 10:38:21 +00:00
2023-02-23 10:38:21 +00:00
2023-02-23 11:06:19 +00:00
2020-05-16 18:42:12 +00:00
2022-03-22 16:25:03 +00:00
2020-02-06 06:33:11 +00:00
2023-02-07 14:40:21 +00:00
2022-10-25 14:56:17 +00:00
2020-02-06 06:33:11 +00:00
2023-02-23 10:38:21 +00:00
2023-02-23 10:38:21 +00:00
2023-02-20 21:13:27 +00:00
2021-11-01 22:36:59 +00:00
2023-02-23 10:38:21 +00:00
2022-06-01 18:14:10 +00:00
2023-02-23 10:38:21 +00:00
2023-02-23 10:38:21 +00:00
2023-02-23 11:06:19 +00:00
2023-02-23 10:38:21 +00:00
2023-02-23 10:38:21 +00:00
2021-07-22 13:53:00 +00:00
2020-02-06 06:33:11 +00:00
2022-06-01 18:14:10 +00:00
2023-02-23 10:38:21 +00:00
2023-02-23 11:06:19 +00:00
2023-02-23 10:38:21 +00:00
2023-02-23 10:38:21 +00:00
2022-04-07 13:40:04 +00:00
2023-02-23 11:06:19 +00:00
2022-03-22 19:59:04 +00:00