Skip to content

Commit

Permalink
MDL-31694 Fix XSS security issue with service name accepting javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
mouneyrac authored and danpoltawski committed Apr 16, 2012
1 parent 5335b7d commit 2547042
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions admin/webservice/forms.php
Expand Up @@ -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'));
Expand Down

0 comments on commit 2547042

Please sign in to comment.