Permalink
Browse files

MDL-31694 Fix XSS security issue with service name accepting javascript

  • Loading branch information...
1 parent 760fefa commit e9e0dac4b70c6845cdde71aecd549cfa5d6eecf3 @mouneyrac mouneyrac committed with danpoltawski Apr 12, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 admin/webservice/forms.php
@@ -63,6 +63,7 @@ function definition() {
$mform->addElement('text', 'name', get_string('name'));
$mform->addRule('name', get_string('required'), 'required', null, 'client');
+ $mform->setType('name', PARAM_TEXT);
$mform->addElement('advcheckbox', 'enabled', get_string('enabled', 'webservice'));
$mform->addElement('advcheckbox', 'restrictedusers',
get_string('restrictedusers', 'webservice'));

0 comments on commit e9e0dac

Please sign in to comment.