Marius L. J
d7745c656d
Filesystem API: Use a temp folder for Content-Disposition files.
...
#38231 added support for files fetched remotely to have their filename defined by the host using the `Content-Disposition` header. This would then take priority over the existing temporary file name created with `wp_tempnam()` earlier in the process.
The change unintentionally omitted the temporary directory path used during uploads, since the `wp_tempnam()` function would have added it previously, so that files with this header ended up being stored in the WordPress root folder, or wp-admin folder, when triggered by WP_Cron or user interactions respectively.
This change makes sure the file path includes the temporary directory location when the header is used.
Follow-up to [51939].
Props antonynz, azouamauriac.
Fixes #55109 .
git-svn-id: https://develop.svn.wordpress.org/trunk@52734 602fd350-edb4-49c9-b593-d223f7449a82
2022-02-15 17:47:39 +00:00
..
2021-06-30 00:20:52 +00:00
2020-02-06 06:31:22 +00:00
2021-11-15 22:23:01 +00:00
2022-02-01 12:28:28 +00:00
2021-09-09 13:47:17 +00:00
2020-11-09 10:51:52 +00:00
2020-11-09 10:51:52 +00:00
2021-09-09 13:58:25 +00:00
2022-01-14 15:12:32 +00:00
2021-08-19 02:06:06 +00:00
2022-01-20 23:51:22 +00:00
2020-01-29 00:43:23 +00:00
2019-11-01 14:55:51 +00:00
2019-11-01 14:55:51 +00:00
2020-06-03 17:38:56 +00:00
2021-09-09 13:58:25 +00:00
2020-10-05 13:42:04 +00:00
2021-08-29 01:32:46 +00:00
2021-05-19 18:09:27 +00:00
2020-11-09 10:51:52 +00:00
2021-12-10 00:04:03 +00:00
2022-01-20 23:51:22 +00:00
2020-11-09 10:51:52 +00:00
2022-01-20 23:51:22 +00:00
2021-09-09 13:02:46 +00:00
2021-09-09 12:38:36 +00:00
2022-01-15 08:42:56 +00:00
2021-09-09 13:47:17 +00:00
2021-06-07 23:48:18 +00:00
2022-01-07 17:53:27 +00:00
2021-11-18 13:55:36 +00:00
2022-01-20 09:17:43 +00:00
2021-11-05 21:03:34 +00:00
2021-12-07 12:18:50 +00:00
2021-12-07 12:18:50 +00:00
2021-12-07 12:18:50 +00:00
2021-12-07 12:18:50 +00:00
2022-01-25 13:54:01 +00:00
2021-04-08 11:10:16 +00:00
2021-11-30 17:16:13 +00:00
2021-09-07 19:23:00 +00:00
2020-11-14 16:52:25 +00:00
2021-10-01 18:38:52 +00:00
2021-10-12 16:42:19 +00:00
2021-12-07 12:18:50 +00:00
2021-09-10 14:47:24 +00:00
2022-01-16 08:38:50 +00:00
2021-09-21 18:19:19 +00:00
2021-11-20 02:21:15 +00:00
2018-08-17 01:50:26 +00:00
2021-11-19 14:42:04 +00:00
2020-10-20 21:18:59 +00:00
2020-10-20 21:18:59 +00:00
2021-11-24 11:39:14 +00:00
2021-11-24 11:39:14 +00:00
2021-11-27 02:05:25 +00:00
2021-10-18 17:51:17 +00:00
2022-01-15 08:42:56 +00:00
2021-02-02 16:51:17 +00:00
2021-11-16 14:55:04 +00:00
2021-11-18 13:48:43 +00:00
2022-01-15 08:42:56 +00:00
2021-09-09 13:58:25 +00:00
2019-10-08 17:17:07 +00:00
2021-12-10 00:04:03 +00:00
2022-01-15 20:47:06 +00:00
2021-04-06 13:43:56 +00:00
2021-03-19 15:40:22 +00:00
2021-10-19 23:07:42 +00:00
2022-01-20 23:51:22 +00:00
2021-12-21 20:04:54 +00:00
2021-12-07 12:18:50 +00:00
2021-04-11 13:42:25 +00:00
2022-02-15 17:47:39 +00:00
2021-07-02 07:10:29 +00:00
2021-12-31 13:53:19 +00:00
2021-01-05 17:14:24 +00:00
2021-01-03 22:02:13 +00:00
2021-12-07 12:18:50 +00:00
2020-05-23 11:36:36 +00:00
2022-01-23 09:01:17 +00:00
2022-02-15 13:47:53 +00:00
2020-01-29 00:33:45 +00:00
2019-09-03 00:39:13 +00:00
2021-12-07 12:18:50 +00:00
2021-05-24 19:58:13 +00:00
2021-11-02 17:36:34 +00:00
2019-09-20 20:45:58 +00:00
2021-11-30 17:16:13 +00:00
2021-12-29 17:26:26 +00:00
2022-01-12 23:43:56 +00:00
2021-12-07 12:18:50 +00:00
2021-08-26 14:04:55 +00:00
2021-12-07 12:18:50 +00:00
2021-11-19 14:42:04 +00:00
2021-05-09 20:25:41 +00:00
2021-11-23 21:35:57 +00:00
2021-11-30 17:16:13 +00:00
2021-03-20 18:28:32 +00:00
2022-01-20 23:51:22 +00:00
2022-01-27 21:13:09 +00:00
2022-01-25 13:54:01 +00:00
2021-11-20 02:21:15 +00:00
2022-02-02 23:20:29 +00:00
2021-11-30 17:16:13 +00:00
2021-12-13 10:19:21 +00:00