mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
fix potential security issue as per friendica
This commit is contained in:
@@ -262,7 +262,7 @@
|
|||||||
var caption = $image.attr('alt');
|
var caption = $image.attr('alt');
|
||||||
if (!this.isValidCaption(caption)) caption = $entry.attr('title');
|
if (!this.isValidCaption(caption)) caption = $entry.attr('title');
|
||||||
if (this.isValidCaption(caption)) { // Create only we found something
|
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.append($imgCaption);
|
||||||
$entry.data('jg.createdCaption', true);
|
$entry.data('jg.createdCaption', true);
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user