Skip to content

Commit

Permalink
pkp/pkp-lib#9407 Add CSRF check to payment types form
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Oct 12, 2023
1 parent 68b138d commit 99a9f39
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions classes/subscription/form/PaymentTypesForm.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public function __construct() {
$this->addCheck(new FormValidatorCustom($this, 'membershipFee', 'optional', 'manager.payment.form.numeric', function($membershipFee) {
return is_numeric($membershipFee) && $membershipFee >= 0;
}));
$this->addCheck(new FormValidatorCSRF($this));
}

/**
Expand Down

0 comments on commit 99a9f39

Please sign in to comment.