Skip to content
Browse files

MDL-38852 repository_s3: fix missing setType calls

  • Loading branch information...
1 parent 98328cf commit 8077527c5d11597c02042a8e951551e1853b97fb @danpoltawski danpoltawski committed Apr 3, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 repository/s3/lib.php
View
2 repository/s3/lib.php
@@ -236,7 +236,9 @@ public static function type_config_form($mform, $classname = 'repository') {
parent::type_config_form($mform);
$strrequired = get_string('required');
$mform->addElement('text', 'access_key', get_string('access_key', 'repository_s3'));
+ $mform->setType('access_key', PARAM_RAW_TRIMMED);
$mform->addElement('text', 'secret_key', get_string('secret_key', 'repository_s3'));
+ $mform->setType('secret_key', PARAM_RAW_TRIMMED);
$mform->addRule('access_key', $strrequired, 'required', null, 'client');
$mform->addRule('secret_key', $strrequired, 'required', null, 'client');
}

0 comments on commit 8077527

Please sign in to comment.
Something went wrong with that request. Please try again.