Permalink
Browse files

MDL-38852 repository_flickr: fix missing setType calls

  • Loading branch information...
1 parent 19b733d commit 5077e85817235268aba8c31e942b36fae1756dea @danpoltawski danpoltawski committed Apr 3, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 repository/flickr/lib.php
View
2 repository/flickr/lib.php
@@ -299,7 +299,9 @@ public static function type_config_form($mform, $classname = 'repository') {
$strrequired = get_string('required');
$mform->addElement('text', 'api_key', get_string('apikey', 'repository_flickr'), array('value'=>$api_key,'size' => '40'));
+ $mform->setType('api_key', PARAM_RAW_TRIMMED);
$mform->addElement('text', 'secret', get_string('secret', 'repository_flickr'), array('value'=>$secret,'size' => '40'));
+ $mform->setType('secret', PARAM_RAW_TRIMMED);
//retrieve the flickr instances
$params = array();

0 comments on commit 5077e85

Please sign in to comment.