Add Echoing for all pages KPI

This commit is contained in:
Eric
2021-06-24 15:12:13 +02:00
parent 2a9ce75db0
commit 671d112452
3 changed files with 22 additions and 16 deletions

View File

@@ -44,9 +44,12 @@ class DownloadPage extends AjaxPage
if (($this->sContentType == 'text/html') && ($this->sContentDisposition == 'inline')) {
// inline content != attachment && html => filter all scripts for malicious XSS scripts
echo self::FilterXSS($this->sContent);
$sContent = self::FilterXSS($this->sContent);
} else {
echo $this->sContent;
$sContent = $this->sContent;
}
$oKpi = new ExecutionKPI();
echo $sContent;
$oKpi->ComputeAndReport('Echoing ('.round(strlen($sContent) / 1024).' Kb)');
}
}