Permalink
Browse files

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

  • Loading branch information...
1 parent 5335b7d commit 2547042fe6e8ec43331b8681f6f22ce72aee5bc7 @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 2547042

Please sign in to comment.