Martin Brennan
cdc8e9de1b
FIX: Post uploads setting access_control_post_id unnecessarily ( #26627 )
...
This commit addresses an issue for sites where secure_uploads
is turned on after the site has been operating without it for
some time.
When uploads are linked when they are used inside a post,
we were setting the access_control_post_id unconditionally
if it was NULL to that post ID and secure_uploads was true.
However this causes issues if an upload has been used in a
few different places, especially if a post was previously
used in a PM and marked secure, so we end up with a case of
the upload using a public post for its access control, which
causes URLs to not use the /secure-uploads/ path in the post,
breaking things like image uploads.
We should only set the access_control_post_id if the post is the first time the
upload is referenced so it cannot hijack uploads from other places.
2024-04-16 10:37:57 +10:00
..
2024-04-12 13:14:19 +02:00
2024-03-04 15:08:35 +01:00
2024-03-01 10:07:35 +10:00
2023-12-04 13:45:19 +01:00
2024-03-20 10:49:28 +01:00
2024-03-14 18:50:09 +00:00
2024-02-12 16:27:24 -05:00
2024-03-01 18:38:49 +01:00
2023-11-09 16:47:59 -06:00
2024-01-24 18:50:42 -03:00
2024-03-13 13:28:06 +08:00
2024-03-26 11:41:12 +08:00
2023-05-24 08:59:37 +08:00
2023-06-26 11:41:52 +02:00
2024-03-01 10:07:35 +10:00
2023-03-22 14:43:32 +00:00
2024-03-04 15:12:08 -07:00
2024-04-04 00:22:28 +05:30
2024-02-12 12:07:14 +02:00
2024-02-07 13:47:50 -06:00
2024-01-29 12:28:47 +00:00
2024-01-31 15:33:09 -05:00
2024-01-19 11:10:28 +08:00
2024-03-15 14:24:11 +08:00
2024-04-05 12:12:59 -03:00
2023-11-09 16:47:59 -06:00
2024-04-04 12:01:31 +08:00
2023-11-02 08:10:15 +03:00
2024-01-25 14:28:26 +08:00
2023-12-14 11:11:11 +08:00
2024-03-26 11:32:01 +01:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2024-02-13 10:18:36 -05:00
2023-11-09 16:47:59 -06:00
2023-02-01 09:55:21 +00:00
2024-03-04 15:08:35 +01:00
2024-03-14 18:50:09 +00:00
2024-04-09 13:23:11 +10:00
2024-02-25 10:42:50 +05:30
2024-02-26 13:45:58 +00:00
2024-02-01 11:48:31 +00:00
2023-12-04 13:45:19 +01:00
2024-01-08 09:57:25 +10:00
2024-01-26 13:25:03 +08:00
2024-02-23 11:42:28 +05:30
2023-11-13 10:34:06 +00:00
2023-07-28 09:07:53 -06:00
2023-11-09 16:47:59 -06:00
2023-12-01 15:03:06 +08:00
2023-08-02 10:46:37 +08:00
2023-06-26 10:09:57 +05:30
2023-11-09 16:47:59 -06:00
2024-03-26 11:41:12 +08:00
2023-12-01 12:57:11 +00:00
2024-04-02 11:05:08 -04:00
2024-01-31 10:23:09 +10:00
2023-11-29 16:38:07 +11:00
2024-02-26 13:45:58 +00:00
2023-11-09 16:47:59 -06:00
2023-08-02 10:46:37 +08:00
2024-01-29 17:52:02 +08:00
2023-12-06 16:37:32 +10:00
2023-04-11 10:16:28 +01:00
2023-12-04 13:45:19 +01:00
2024-03-26 11:41:12 +08:00
2023-12-13 17:18:42 +08:00
2024-03-27 08:57:43 -04:00
2024-03-26 11:41:12 +08:00
2023-06-26 11:41:52 +02:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2024-04-16 10:37:57 +10:00
2023-11-09 16:47:59 -06:00
2024-03-25 13:35:02 +01:00
2023-03-30 13:52:10 +10:00
2023-08-10 02:03:38 +02:00
2023-06-26 11:01:59 +08:00
2023-11-09 16:47:59 -06:00
2023-12-01 15:03:06 +08:00
2023-11-29 16:38:07 +11:00
2023-11-09 16:47:59 -06:00
2024-02-01 07:20:46 +08:00
2023-12-06 23:25:00 +01:00
2024-01-25 09:50:59 +10:00
2023-11-09 16:47:59 -06:00
2023-12-15 23:46:04 +08:00
2024-01-25 14:28:26 +08:00
2024-04-04 10:57:41 -03:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2023-10-02 12:36:06 +02:00
2024-02-08 12:59:52 +08:00
2024-04-09 11:26:24 +08:00
2023-12-06 23:25:00 +01:00
2024-04-04 15:02:09 +02:00
2024-03-27 12:56:21 +03:00
2023-11-09 16:47:59 -06:00
2024-02-23 17:11:39 +11:00
2023-02-28 14:31:59 +02:00
2023-06-26 11:41:52 +02:00
2024-03-26 15:19:00 +00:00
2024-01-26 13:25:03 +08:00
2023-11-09 16:47:59 -06:00
2023-02-07 15:28:59 -03:00
2023-10-16 10:34:38 -04:00
2024-02-16 07:39:49 +08:00
2024-01-25 09:50:59 +10:00
2023-12-04 13:45:19 +01:00
2023-11-22 15:19:40 +10:00
2023-06-26 11:41:52 +02:00
2023-12-04 13:45:19 +01:00
2023-09-12 15:31:31 -03:00
2024-02-07 13:47:50 -06:00