diff --git a/include/class.thread.php b/include/class.thread.php index 3b773bfda402c0633e5aab07a96e5e7ab840e469..2fa25f53039e9f3033ef06d38ef1dae8a9bcb7ea 100644 --- a/include/class.thread.php +++ b/include/class.thread.php @@ -1284,7 +1284,7 @@ class ThreadBody /* extends SplString */ { if (strlen($this->body) > 250000) { $max_packet = db_get_variable('max_allowed_packet', 'global'); // Truncate just short of the max_allowed_packet - $this->body = substr($this->body, $max_packet - 2048) . ' ... (truncated)'; + $this->body = substr($this->body, 0, $max_packet - 2048) . ' ... (truncated)'; } $this->type = $type; $this->options = array_merge($this->options, $options);