loolwsd/LOOLProtocol.hpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5656c1271316d6067b383f986d718a5234c9b832
Author: Ashod Nakashian <ashod.nakash...@collabora.co.uk>
Date:   Mon Oct 31 21:22:49 2016 -0400

    loolwsd: cap abbraviated message length
    
    Change-Id: Idddfd55ae9a9fe8c2ae0c78e416d541529adaa66
    Reviewed-on: https://gerrit.libreoffice.org/30490
    Reviewed-by: Ashod Nakashian <ashnak...@gmail.com>
    Tested-by: Ashod Nakashian <ashnak...@gmail.com>

diff --git a/loolwsd/LOOLProtocol.hpp b/loolwsd/LOOLProtocol.hpp
index 855ca94..fe11f2e 100644
--- a/loolwsd/LOOLProtocol.hpp
+++ b/loolwsd/LOOLProtocol.hpp
@@ -172,7 +172,7 @@ namespace LOOLProtocol
             return "";
         }
 
-        const auto firstLine = getFirstLine(message, length);
+        const auto firstLine = getFirstLine(message, std::min(length, 120));
 
         // If first line is less than the length (minus newline), add ellipsis.
         if (firstLine.size() < static_cast<std::string::size_type>(length) - 1)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to