Skip to content

Commit 229b16a

Browse files
authored
Merge pull request #114 from educlever/issue-113
Escape Logger::error message printing
2 parents 06ea753 + 88cc2a2 commit 229b16a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Logger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public function error($msg)
185185
if ($this->level <= 4 && $level >= 4) {
186186
$style = 'dim';
187187
}
188-
fprintf(STDERR, $this->formatter->format($msg, $style) . PHP_EOL);
188+
fprintf(STDERR, str_replace('%', '%%', $this->formatter->format($msg, $style)) . PHP_EOL);
189189
}
190190

191191
public function __call($method, $args)

0 commit comments

Comments
 (0)