Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 4b8da40c6a32d1d43b37cbe0743f11296d23cc65 1 parent bde399d
Jérôme Mouneyrac mouneyrac authored danpoltawski committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  admin/webservice/forms.php
1  admin/webservice/forms.php
View
@@ -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'));
Please sign in to comment.
Something went wrong with that request. Please try again.