mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-25 02:34:17 +00:00
Only indicate that it is truncated if we actually did truncate it!
This commit is contained in:
parent
89bae63b1c
commit
9a15ec0e15
@ -501,7 +501,7 @@ class CalDAVRequest
|
||||
echo $message;
|
||||
|
||||
if ( strlen($message) > 100 || strstr($message, "\n") ) {
|
||||
$message = substr( preg_replace("#\s+#m", ' ', $message ), 0, 100) + "...";
|
||||
$message = substr( preg_replace("#\s+#m", ' ', $message ), 0, 100) . (strlen($message) > 100 ? "..." : "");
|
||||
}
|
||||
|
||||
dbg_error_log("caldav", "Status: %d, Message: %s, User: %d, Path: %s", $status, $message, $session->user_no, $this->path);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user