Skip to content
Permalink
Browse files
pkp/pkp-lib#7371 Add missing CSRF check
  • Loading branch information
asmecher committed Oct 19, 2021
1 parent 797ad59 commit 41a389fda32226ad742d2030e4c3f8ef991b9191
Showing with 1 addition and 0 deletions.
  1. +1 −0 plugins/importexport/datacite/classes/form/DataciteSettingsForm.inc.php
@@ -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));
}


0 comments on commit 41a389f

Please sign in to comment.