mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 23:03:00 -04:00
properly escape variable
This commit is contained in:
parent
96ae18db59
commit
cd81687a38
1 changed files with 1 additions and 1 deletions
|
|
@ -579,7 +579,7 @@ OC.Upload = {
|
|||
input.val(newName);
|
||||
input.attr('id', fileType);
|
||||
}
|
||||
var label = $('<label class="hidden-visually" for="">' + newName + '</label>');
|
||||
var label = $('<label class="hidden-visually" for="">' + escapeHTML(newName) + '</label>');
|
||||
label.attr('for', fileType);
|
||||
|
||||
form.append(label).append(input);
|
||||
|
|
|
|||
Loading…
Reference in a new issue