Commit: a9c32477546927e863a0e737c58f89003bc49254
Author: David Persson | Date: 2011-02-13 14:35:31 +0100
diff --git a/models/Log.php b/models/Log.php
index 02d49d2..548905d 100644
--- a/models/Log.php
+++ b/models/Log.php
@@ -40,6 +40,9 @@ class Log extends \lithium\core\StaticObject {
mkdir($dir);
}
+ $colorCodes = '\x2\x3\x36\x311\x313';
+ $data['message'] = preg_replace("/[{$colorCodes}]/", null, $data['message']);
+
$line = date('H:i:s') . " : {$data['user']} : {$data['message']}\n";
file_put_contents($path, $line, FILE_APPEND);