Skip to content

Commit d0f8352

Browse files
committed
Bug-fix.
Changelog excerpt: - CLI-mode colour markers shouldn't be showing up when viewing the logs at the front-end in fancy mode; Fixed.
1 parent c49c39b commit d0f8352

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ __*Why "v3.0.0" instead of "v1.0.0?"*__ Prior to phpMussel v3, the "phpMussel Co
180180

181181
### v3.6.1
182182

183+
#### Bugs fixed.
184+
- [2025.04.29]: CLI-mode colour markers shouldn't be showing up when viewing the logs at the front-end in fancy mode; Fixed.
185+
186+
#### Other changes.
183187
- [2025.03.29]: Moved a small number of L10N strings from the front-end to the core due to being needed for some new CLI functionality.
184188
- [2025.04.24]: Added download icons to allow log files to be downloaded directly from the front-end logs page.
185189
- [2025.02~04]: Added L10N for Marathi.

src/FrontEnd.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License: GNU/GPLv2
99
* @see LICENSE.txt
1010
*
11-
* This file: Front-end handler (last modified: 2024.09.26).
11+
* This file: Front-end handler (last modified: 2025.04.29).
1212
*/
1313

1414
namespace phpMussel\FrontEnd;
@@ -1423,6 +1423,9 @@ private function arrayToClickableList(array $Arr = [], string $DeleteKey = '', i
14231423
*/
14241424
private function formatter(string &$In): void
14251425
{
1426+
/** Remove CLI-mode formatting. */
1427+
$In = preg_replace('~[\x00-\x1f]\[0;\d+m~i', '', $In);
1428+
14261429
if (strpos($In, "<br />\n") === false) {
14271430
$In = '<div class="fW">' . $In . '</div>';
14281431
return;

0 commit comments

Comments
 (0)