From 160233f758300c55a1c10e27f5400c264e2778a5 Mon Sep 17 00:00:00 2001 From: vfilippov Date: Thu, 29 Sep 2011 18:31:59 +0000 Subject: [PATCH] Bug 82651 - Content size limit (4MB Sphinx) git-svn-id: svn://svn.office.custis.ru/3rdparty/viewvc.org/trunk@1401 6955db30-a419-402b-8a0d-67ecbb4d7f56 --- lib/cvsdb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/cvsdb.py b/lib/cvsdb.py index 8f944079..775698d1 100644 --- a/lib/cvsdb.py +++ b/lib/cvsdb.py @@ -381,7 +381,8 @@ class CheckinDatabase: if len(content): # Maximum field size limit for Sphinx is 4MB if len(content) > self.content_max_size: - props['content'] = content[0:self.content_max_size] + content = content[0:self.content_max_size] + props['content'] = content # Now, stored MIME type is only needed while searching # It is guessed again when the file is displayed props['mimetype'] = commit.GetMimeType()