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