diff --git a/Koha/App/Plugin/CSRF.pm b/Koha/App/Plugin/CSRF.pm index 01ecb3897d..5e487fb097 100644 --- a/Koha/App/Plugin/CSRF.pm +++ b/Koha/App/Plugin/CSRF.pm @@ -62,6 +62,8 @@ this case, no verification is done. =cut +# If you need to update the logic here, please also update Koha::Middleware::CSRF + sub register { my ( $self, $app, $conf ) = @_; diff --git a/Koha/Middleware/CSRF.pm b/Koha/Middleware/CSRF.pm index 29b1e1ae25..58e75c948e 100644 --- a/Koha/Middleware/CSRF.pm +++ b/Koha/Middleware/CSRF.pm @@ -20,6 +20,8 @@ use Modern::Perl; use parent qw(Plack::Middleware); use Plack::Response; +# If you need to update the logic here, please also update Koha::App::Plugin::CSRF + sub call { my ( $self, $env ) = @_; my $req = Plack::Request->new($env);