Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit e9e0dac4b70c6845cdde71aecd549cfa5d6eecf3 1 parent 760fefa
@mouneyrac mouneyrac authored danpoltawski committed
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'));
Please sign in to comment.
Something went wrong with that request. Please try again.