Skip to content

Commit

Permalink
pkp/pkp-lib#7371 Add missing CSRF check
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Oct 19, 2021
1 parent 797ad59 commit 41a389f
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -87,6 +87,7 @@ public function __construct($plugin, $contextId)
// The username is used in HTTP basic authentication and according to RFC2617 it therefore may not contain a colon.
$this->addCheck(new \PKP\form\validation\FormValidatorRegExp($this, 'username', FormValidator::FORM_VALIDATOR_OPTIONAL_VALUE, 'plugins.importexport.datacite.settings.form.usernameRequired', '/^[^:]+$/'));
$this->addCheck(new \PKP\form\validation\FormValidatorPost($this));
$this->addCheck(new \PKP\form\validation\FormValidatorCSRF($this));
}


Expand Down

0 comments on commit 41a389f

Please sign in to comment.