Issue #2512478 by googletorp, pwolanin, G1N1: XSS on field edit form via label field via ckeditor

8.0.x
Alex Pott 2015-06-28 15:22:33 +01:00
parent 1462460f3f
commit f1314cced2
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@
// Set a title on the CKEditor instance that includes the text field's
// label so that screen readers say something that is understandable
// for end users.
var label = $('label[for=' + element.getAttribute('id') + ']').text();
var label = $('label[for=' + element.getAttribute('id') + ']').html();
format.editorSettings.title = Drupal.t("Rich Text Editor, !label field", {'!label': label});
// CKEditor initializes itself in a read-only state if the 'disabled'