Sergey Biryukov
07b35de70a
Filesystem API: Return false for empty paths in FTP ::exists() methods.
...
When `ftp_nlist()` receives an empty path, it checks the current working directory and may return `true`.
This affects:
* `WP_Filesystem_FTPext::exists()`
* `WP_Filesystem_ftpsockets::exists()`
As the purpose of the API is to provide a consistent interface for various filesystem implementations, this commit updates the affected methods to returns `false` when an empty path is provided, bringing consistency with the other filesystem abstraction classes, specifically `WP_Filesystem_Direct` and `WP_Filesystem_SSH2`.
Follow-up to [6779], [11821], [25274], [31815].
Props mkox, costdev, Zdrobau, dd32, pbiron, azaozz, mukesh27, SergeyBiryukov.
Fixes #33058 .
Built from https://develop.svn.wordpress.org/trunk@55556
git-svn-id: http://core.svn.wordpress.org/trunk@55068 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-03-16 16:14:22 +00:00
..
2023-03-09 16:30:19 +00:00
2023-03-09 16:30:19 +00:00
2023-03-16 16:14:22 +00:00
2023-02-17 09:54:19 +00:00
2023-02-24 15:10:22 +00:00
2023-03-01 17:03:19 +00:00
2020-02-06 06:33:11 +00:00
2023-03-14 16:05:17 +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
2023-03-09 16:30:19 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2023-02-28 12:52:18 +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
2023-03-09 16:30:19 +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-28 15:04:23 +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-03-15 09:05:22 +00:00
2023-02-23 10:38:21 +00:00
2023-02-23 10:38:21 +00:00
2023-03-01 17:03: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
2023-03-09 16:30:19 +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-28 13:52:20 +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