Fix a potential encoding issue in diag_system_activity.php. Fixes #8300

This commit is contained in:
jim-p 2018-01-29 12:24:25 -05:00
parent d69a55e3d6
commit c083e1e49a

View File

@ -32,6 +32,7 @@ $pgtitle = array(gettext("Diagnostics"), gettext("System Activity"));
if ($_REQUEST['getactivity']) {
$text = `/usr/bin/top -aHS | /usr/bin/cut -c1-105`;
header('Content-Type: text/plain; charset=UTF-8');
echo $text;
exit;
}
@ -69,7 +70,7 @@ events.push(function() {
// Deal with the results of the above ajax call
ajaxRequest.done(function (response, textStatus, jqXHR) {
$('#xhrOutput').html(response);
$('#xhrOutput').text(response);
ajaxbusy = false;
});