mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix a potential encoding issue in diag_system_activity.php. Fixes #8300
This commit is contained in:
parent
d69a55e3d6
commit
c083e1e49a
@ -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;
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user