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
..
2022-01-28 21:48:08 +00:00
2022-01-11 18:34:34 +00:00
2022-02-15 17:47:39 +00:00
2020-12-04 15:48:15 +00:00
2021-12-21 20:04:54 +00:00
2020-02-06 06:31:22 +00:00
2021-11-03 17:22:55 +00:00
2022-01-11 18:34:34 +00:00
2021-02-02 18:11:26 +00:00
2021-06-01 11:29:36 +00:00
2020-02-06 06:31:22 +00:00
2021-11-30 17:16:13 +00:00
2020-02-06 06:31:22 +00:00
2021-07-22 13:51:58 +00:00
2022-01-27 22:16:00 +00:00
2021-10-01 13:47:59 +00:00
2021-07-22 13:51:58 +00:00
2022-01-04 18:33:42 +00:00
2020-02-06 06:31:22 +00:00
2020-02-06 06:31:22 +00:00
2021-11-08 21:41:43 +00:00
2021-11-02 15:56:02 +00:00
2021-04-09 11:29:58 +00:00
2022-01-17 22:40:51 +00:00
2021-06-07 18:45:56 +00:00
2021-02-16 18:47:39 +00:00
2021-11-15 16:43:29 +00:00
2021-11-15 16:43:29 +00:00
2021-09-22 20:59:15 +00:00
2021-07-08 17:06:29 +00:00
2021-07-08 17:06:29 +00:00
2021-11-30 17:16:13 +00:00
2022-01-24 09:39:53 +00:00
2021-07-22 13:51:58 +00:00
2021-12-10 20:28:27 +00:00
2020-05-12 18:38:02 +00:00
2021-03-21 13:11:11 +00:00
2021-07-22 13:51:58 +00:00
2021-07-22 13:51:58 +00:00
2020-07-05 15:20:16 +00:00
2021-07-27 19:00:54 +00:00
2021-12-12 14:50:18 +00:00
2021-12-12 14:50:18 +00:00
2021-07-22 13:51:58 +00:00
2021-03-07 12:30:38 +00:00
2021-07-22 13:51:58 +00:00
2020-10-18 17:25:10 +00:00
2021-12-25 03:30:27 +00:00
2020-02-06 06:31:22 +00:00
2020-02-06 06:31:22 +00:00
2021-07-22 13:51:58 +00:00
2020-02-06 06:31:22 +00:00
2020-02-06 06:31:22 +00:00
2020-02-06 06:31:22 +00:00
2020-02-06 06:31:22 +00:00
2020-02-06 06:31:22 +00:00
2020-02-06 06:31:22 +00:00
2021-07-22 13:51:58 +00:00
2021-11-15 19:58:04 +00:00
2021-07-22 13:51:58 +00:00
2021-11-02 16:42:01 +00:00
2021-07-22 13:51:58 +00:00
2019-08-16 00:38:42 +00:00
2021-07-22 13:51:58 +00:00
2021-10-05 23:09:21 +00:00
2021-11-08 21:53:50 +00:00
2022-01-02 16:45:34 +00:00
2021-07-22 13:51:58 +00:00
2022-01-03 21:26:48 +00:00
2021-12-21 20:04:54 +00:00
2022-01-06 21:17:39 +00:00
2021-07-22 13:51:58 +00:00
2020-05-16 18:40:52 +00:00
2021-02-08 21:37:34 +00:00
2020-02-06 06:31:22 +00:00
2021-08-26 12:57:08 +00:00
2021-07-22 13:51:58 +00:00
2020-02-06 06:31:22 +00:00
2022-01-07 16:45:24 +00:00
2021-08-14 12:05:25 +00:00
2022-01-17 22:40:51 +00:00
2021-11-01 22:35:43 +00:00
2021-12-18 21:00:26 +00:00
2020-04-05 03:00:44 +00:00
2021-12-21 20:04:54 +00:00
2022-01-05 22:13:43 +00:00
2022-01-15 08:42:56 +00:00
2021-07-22 13:51:58 +00:00
2022-01-26 13:09:52 +00:00
2021-07-22 13:51:58 +00:00
2020-02-06 06:31:22 +00:00
2021-03-21 13:11:11 +00:00
2021-08-05 03:36:24 +00:00
2022-02-07 15:24:27 +00:00
2021-07-22 13:51:58 +00:00
2021-07-22 13:51:58 +00:00
2021-10-31 23:15:10 +00:00
2021-09-09 21:39:39 +00:00
2021-07-22 13:51:58 +00:00