mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/security-283] Ensure text is properly handled for responsiveness
SECURITY-283
This commit is contained in:
parent
a223da37fb
commit
c3bb5e1bec
1 changed files with 5 additions and 4 deletions
|
@ -650,7 +650,7 @@ function parseDocument($container) {
|
||||||
html = $children.html();
|
html = $children.html();
|
||||||
}
|
}
|
||||||
|
|
||||||
$block.append((first ? '' : '<br />') + html);
|
$block.append((first ? '' : '<br>') + html);
|
||||||
|
|
||||||
first = false;
|
first = false;
|
||||||
});
|
});
|
||||||
|
@ -670,7 +670,7 @@ function parseDocument($container) {
|
||||||
|
|
||||||
// Find all headers, get contents
|
// Find all headers, get contents
|
||||||
$list.prev('.topiclist').find('li.header dd').not('.mark').each(function() {
|
$list.prev('.topiclist').find('li.header dd').not('.mark').each(function() {
|
||||||
headers.push($(this).text());
|
headers.push($("<div>").text($(this).text()).html());
|
||||||
headersLength++;
|
headersLength++;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -707,7 +707,7 @@ function parseDocument($container) {
|
||||||
html = headers[i] + ': <strong>' + html + '</strong>';
|
html = headers[i] + ': <strong>' + html + '</strong>';
|
||||||
}
|
}
|
||||||
|
|
||||||
$block.append((first ? '' : '<br />') + html);
|
$block.append((first ? '' : '<br>') + html);
|
||||||
|
|
||||||
first = false;
|
first = false;
|
||||||
});
|
});
|
||||||
|
@ -773,7 +773,8 @@ function parseDocument($container) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((text.length && text !== '-') || cell.children().length) {
|
if ((text.length && text !== '-') || cell.children().length) {
|
||||||
cell.prepend('<dfn style="display: none;">' + headers[column] + '</dfn>');
|
const $dfnElement = $("<dfn>").css('display', 'none').text(headers[column]);
|
||||||
|
cell.prepend($dfnElement);
|
||||||
} else {
|
} else {
|
||||||
cell.addClass('empty');
|
cell.addClass('empty');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue