Koha-clms/opac
David Cook 46e7866132
Bug 41662: Prevent CSRF on opac-patron-consent.pl
This change prevents CSRF on opac-patron-consent.pl by
adding checking of the "op".

Test plan:
0. Apply the patch and koha-plack --restart kohadev
1. Set system preference PrivacyPolicyConsent to "permissive"
2. Log into the OPAC and go to this path:
/cgi-bin/koha/opac-patron-consent.pl?check_GDPR_PROCESSING=1
3. Note that it doesn't change the consent
4. Go to this path:
/cgi-bin/koha/opac-patron-consent.pl?check_GDPR_PROCESSING=0
5. Note that it doesn't change the consent
6. Click the "Yes" radio button and click "Save"
7. Note it changes the consent to Yes
8. Click the "No" radio button and click "Save"
9. Note it changes the consent to No

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2026-01-29 07:47:34 -07:00
..
clubs Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
errors Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
external/overdrive Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
sci Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
sco Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
svc Bug 40163: (follow-up) Fix wrong GNU links and update test 2026-01-07 14:32:37 +00:00
ilsdi.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
maintenance.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
oai.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-ISBDdetail.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-MARCdetail.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-account-pay-return.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-account-pay.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-account.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-addbybiblionumber.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-alert-subscribe.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-alert-subscriptions.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-article-request-cancel.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-authorities-home.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-authoritiesdetail.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-basket.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-blocked.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-browse.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-browser.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-changelanguage.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-course-details.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-course-reserves.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-curbside-pickups.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-detail.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-discharge.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-dismiss-message.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-downloadcart.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-downloadshelf.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-export.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-holdshistory.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-ics.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-idref.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-illrequests-unauthenticated.pl Bug 36197: (QA follow-up): Adopt POST REDIRECT GET pattern 2025-04-25 08:47:11 +02:00
opac-illrequests.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-image.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-imageviewer.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-issue-note.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-library.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-main.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-memberentry.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-messaging.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-modrequest-suspend.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-modrequest.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-mymessages.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-news-rss.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-overdrive-search.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-page.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-passwd.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-password-recovery.pl Bug 39325: Automatic fix 2025-04-28 18:51:22 +02:00
opac-patron-consent.pl Bug 41662: Prevent CSRF on opac-patron-consent.pl 2026-01-29 07:47:34 -07:00
opac-patron-image.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-privacy.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-ratings.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-readingrecord.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-recall.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-recalls.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-registration-verify.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-renew.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-reportproblem.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-request-article.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-reserve.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-reset-password.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-restrictedpage.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-retrieve-file.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-review.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-routing-lists.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-search-history.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-search.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-sendbasket.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-sendshelf.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-serial-issues.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-shareshelf.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-shelves.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-showmarc.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-showreviews.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-suggestions.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-tags.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-tags_subject.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-topissues.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-user.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
opac-virtual-card.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
tracklinks.pl Bug 40163: Fix several http addresses in the code docs 2026-01-07 14:32:30 +00:00
unapi Bug 40163: (follow-up) Fix wrong GNU links and update test 2026-01-07 14:32:37 +00:00