summaryrefslogtreecommitdiffstats
path: root/inc/eventlog.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/eventlog.inc.php')
-rw-r--r--inc/eventlog.inc.php6
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,