Permalink
Browse files

MDL-34311 mod_url: Missing setType on the external url

  • Loading branch information...
1 parent 9f9dde4 commit b716cd2b702da070003cd19c808eff3309e32c6f @danpoltawski danpoltawski committed Mar 25, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 mod/url/mod_form.php
@@ -50,6 +50,7 @@ function definition() {
//-------------------------------------------------------
$mform->addElement('header', 'content', get_string('contentheader', 'url'));
$mform->addElement('url', 'externalurl', get_string('externalurl', 'url'), array('size'=>'60'), array('usefilepicker'=>true));
+ $mform->setType('externalurl', PARAM_URL);
$mform->addRule('externalurl', null, 'required', null, 'client');
//-------------------------------------------------------
$mform->addElement('header', 'optionssection', get_string('optionsheader', 'url'));

0 comments on commit b716cd2

Please sign in to comment.