diff options
author | Simon Rettberg | 2023-07-25 10:15:16 +0200 |
---|---|---|
committer | Simon Rettberg | 2023-07-25 10:15:16 +0200 |
commit | 8086390e4f714be10077e09671ddbc6dd7710ce6 (patch) | |
tree | 75e469fd6133a7e7648a897564d232857b659518 | |
parent | [eventlog] Add 'L' suffix to formatting, try to improve help text (diff) | |
download | slx-admin-8086390e4f714be10077e09671ddbc6dd7710ce6.tar.gz slx-admin-8086390e4f714be10077e09671ddbc6dd7710ce6.tar.xz slx-admin-8086390e4f714be10077e09671ddbc6dd7710ce6.zip |
[inc/Eventlog] Make sure data fits in columns
-rw-r--r-- | inc/eventlog.inc.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/inc/eventlog.inc.php b/inc/eventlog.inc.php index a29261b8..5d6bb745 100644 --- a/inc/eventlog.inc.php +++ b/inc/eventlog.inc.php @@ -17,6 +17,12 @@ class EventLog error_log($message); return; } + if (mb_strlen($message) > 255) { + $message = mb_substr($message, 0, 255); + } + if (mb_strlen($details) > 65535) { + $details = mb_substr($details, 0, 65535); + } $data = [ 'type' => $type, 'message' => $message, |