nextcloud/lib
Louis Chemineau 7a0261878a fix: Move CSRF check from base to PublicAuth for public.php
This currently prevent directly accessing a ressource when clicking on a link on a third party site. Example, clicking on `https://example.com/public.php/dav/files/pqLWcA269zfzXez/?accept=zip` in a GitHub comment.

Skipping the check is an issue with password protected shares, as it allows third party sites to request the ressource when the user already entered the password, aka CSRF.  So after removing the check from `base.php`, we need to add the it again in the `PublicAuth` plugin.

We also add a redirect to be helpful to the user.

**Warning**: this adds the limitation that clicking on a direct download link for password protected shares will redirect you to the password form, and then to the main share view.

Fix #52482

Signed-off-by: Louis Chemineau <louis@chmn.me>
2025-05-22 08:30:36 +00:00
..
composer fix: keep IObjectStoreMetaData in private namespace for backports 2025-05-16 10:41:27 +02:00
l10n fix(l10n): Update translations from Transifex 2025-05-22 00:22:50 +00:00
private fix: Fix warning when crash reporter fails to get loaded 2025-05-20 20:30:15 +00:00
public fix: keep IObjectStoreMetaData in private namespace for backports 2025-05-16 10:41:27 +02:00
unstable fix(lexicon): syntax 2025-01-14 10:38:15 -01:00
autoloader.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
base.php fix: Move CSRF check from base to PublicAuth for public.php 2025-05-22 08:30:36 +00:00
versioncheck.php feat(PHP): Allow PHP 8.4 2024-11-08 12:59:12 +01:00