summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/Bugzilla.cpp
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-01-19 13:55:23 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-01-19 13:55:23 +0100
commitb348085ac9f3d4a7ded81026bffa962a065bdf97 (patch)
treedb5fda2df01df4ed7bed0e17f12bf3e5dfd2cbc6 /lib/Plugins/Bugzilla.cpp
parent6edf29e32c72e2d860019b2b987012fe52ac49a0 (diff)
downloadabrt-b348085ac9f3d4a7ded81026bffa962a065bdf97.tar.gz
abrt-b348085ac9f3d4a7ded81026bffa962a065bdf97.tar.xz
abrt-b348085ac9f3d4a7ded81026bffa962a065bdf97.zip
Eliminate ATT file type - use TXT or BIN
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Plugins/Bugzilla.cpp')
-rw-r--r--lib/Plugins/Bugzilla.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Plugins/Bugzilla.cpp b/lib/Plugins/Bugzilla.cpp
index 6f0f8d7b..f963eb9c 100644
--- a/lib/Plugins/Bugzilla.cpp
+++ b/lib/Plugins/Bugzilla.cpp
@@ -360,7 +360,7 @@ void ctx::add_attachments(const char* bug_id_str, const map_crash_report_t& pCra
const std::string &type = it->second[CD_TYPE];
const std::string &content = it->second[CD_CONTENT];
- if (type == CD_ATT)
+ if (type == CD_TXT && content.length() > CD_TEXT_ATT_SIZE)
{
char *encoded64 = encode_base64(content.c_str(), content.length());
// fails only when you write query. when it's done it never fails.