fix potential security issue as per friendica

This commit is contained in:
Mario
2023-04-26 06:28:24 +00:00
parent 09fde2f839
commit 027a9fec61
2 changed files with 147 additions and 147 deletions

View File

@@ -262,7 +262,7 @@
var caption = $image.attr('alt');
if (!this.isValidCaption(caption)) caption = $entry.attr('title');
if (this.isValidCaption(caption)) { // Create only we found something
$imgCaption = $('<div class="jg-caption">' + caption + '</div>');
$imgCaption = $('<div class="jg-caption"></div>').text(caption);
$entry.append($imgCaption);
$entry.data('jg.createdCaption', true);
}

File diff suppressed because one or more lines are too long