Tool base URLs don't need to start with http(s)
authorChris Scribner <scriby@gmail.com>
Thu, 1 Sep 2011 18:01:56 +0000 (14:01 -0400)
committerChris Scribner <scriby@gmail.com>
Mon, 7 Nov 2011 01:41:49 +0000 (20:41 -0500)
mod/lti/edit_form.php

index 7312131..3c998d4 100644 (file)
@@ -64,12 +64,9 @@ class mod_lti_edit_types_form extends moodleform{
 //        $mform->addHelpButton('lti_typename', 'typename','lti');\r
         $mform->addRule('lti_typename', null, 'required', null, 'client');\r
 \r
-        $regex = '/^(http|https):\/\/([a-z0-9-]\.+)*/i';\r
-\r
         $mform->addElement('text', 'lti_toolurl', get_string('toolurl', 'lti'), array('size'=>'64'));\r
         $mform->setType('lti_toolurl', PARAM_TEXT);\r
 //        $mform->addHelpButton('lti_toolurl', 'toolurl', 'lti');\r
-        $mform->addRule('lti_toolurl', get_string('validurl', 'lti'), 'regex', $regex, 'client');\r
         $mform->addRule('lti_toolurl', null, 'required', null, 'client');\r
 \r
         $mform->addElement('text', 'lti_resourcekey', get_string('resourcekey', 'lti'));\r