Browse Source

In smtp.cpp fix 'ct' reassign.

adaptive-webui-19844
Konstantin Goncharik 11 years ago
parent
commit
8a882e7323
  1. 3
      src/smtp.cpp

3
src/smtp.cpp

@ -272,10 +272,9 @@ QByteArray Smtp::encode_mime_header(const QString& key, const QString& value, QT @@ -272,10 +272,9 @@ QByteArray Smtp::encode_mime_header(const QString& key, const QString& value, QT
// The text cannot be losslessly encoded as Latin-1. Therefore, we
// must use base64 encoding.
QByteArray utf8 = value.toUtf8();
int ct = utf8.length();
// Use base64 encoding
QByteArray base64 = utf8.toBase64();
ct = base64.length();
int ct = base64.length();
line += "=?utf-8?b?";
for (int i = 0; i < ct; i += 4) {
/*if (line.length() > 72) {

Loading…
Cancel
Save