Escape output from TechnicalDebt plugin
Issue #865 Signed-off-by: Adam Henley <adamazing@gmail.com>
This commit is contained in:
parent
6919e9b7ff
commit
776d6ba369
|
@ -190,7 +190,7 @@ class TechnicalDebt implements PHPCI\Plugin, PHPCI\ZeroConfigPlugin
|
||||||
if (false !== $beforeString) {
|
if (false !== $beforeString) {
|
||||||
$lines = explode(PHP_EOL, $beforeString);
|
$lines = explode(PHP_EOL, $beforeString);
|
||||||
$lineNumber = count($lines);
|
$lineNumber = count($lines);
|
||||||
$content = trim($allLines[$lineNumber - 1]);
|
$content = htmlspecialchars(trim($allLines[$lineNumber - 1]));
|
||||||
|
|
||||||
$errorCount++;
|
$errorCount++;
|
||||||
$this->phpci->log("Found $search on line $lineNumber of $file:\n$content");
|
$this->phpci->log("Found $search on line $lineNumber of $file:\n$content");
|
||||||
|
|
Loading…
Reference in a new issue