Browse files

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

  • Loading branch information...
1 parent 668a499 commit 803ed74166e2ae28337b57820bf259183a7620d0 @mouneyrac mouneyrac committed Apr 12, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 admin/webservice/forms.php
View
1 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 803ed74

Please sign in to comment.