From 4fe593fd002956ca79e1362d662050b3b199ef27 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 18 Nov 2010 12:32:18 +0000 Subject: [PATCH] 2010-11-18 13:31 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbtip/sendmail.prg ! Fixed to not add 'Bcc:' entry to e-mail headers, since this will reveal all the supposedly secret addresses to all addressees. It's interesting how such huge bug can persist for so long time without anyone noticing. Please test and correct if needed. * contrib/sddpg/sddpg.c + Recognizing OIDOID column type. Patch from Aleksander Czajczynski. * contrib/hbpgsql/postgres.c % Minor opt. --- harbour/ChangeLog | 14 ++++++++++++++ harbour/contrib/hbpgsql/postgres.c | 5 +---- harbour/contrib/hbtip/sendmail.prg | 2 +- harbour/contrib/sddpg/sddpg.c | 1 + 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 3279c5a96a..ccb88ce81c 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,20 @@ The license applies to all entries newer than 2009-04-28. */ +2010-11-18 13:31 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) + * contrib/hbtip/sendmail.prg + ! Fixed to not add 'Bcc:' entry to e-mail headers, since this will + reveal all the supposedly secret addresses to all addressees. + It's interesting how such huge bug can persist for so long + time without anyone noticing. + Please test and correct if needed. + + * contrib/sddpg/sddpg.c + + Recognizing OIDOID column type. Patch from Aleksander Czajczynski. + + * contrib/hbpgsql/postgres.c + % Minor opt. + 2010-11-18 12:49 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbtip/sendmail.prg * contrib/hbtip/mail.prg diff --git a/harbour/contrib/hbpgsql/postgres.c b/harbour/contrib/hbpgsql/postgres.c index 9e93c26c51..607b4c0186 100644 --- a/harbour/contrib/hbpgsql/postgres.c +++ b/harbour/contrib/hbpgsql/postgres.c @@ -685,11 +685,8 @@ HB_FUNC( PQMETADATA ) hb_strncpy( buf, "integer", sizeof( buf ) - 1 ); break; - case OIDOID: - hb_strncpy( buf, "bigint", sizeof( buf ) - 1 ); - break; - case INT8OID: + case OIDOID: hb_strncpy( buf, "bigint", sizeof( buf ) - 1 ); break; diff --git a/harbour/contrib/hbtip/sendmail.prg b/harbour/contrib/hbtip/sendmail.prg index 06259b2908..2097b8f539 100644 --- a/harbour/contrib/hbtip/sendmail.prg +++ b/harbour/contrib/hbtip/sendmail.prg @@ -263,7 +263,7 @@ FUNCTION hb_SendMail( cServer, nPort, cFrom, xTo, xCC, xBCC, cBody, cSubject, ; oMail := tipMail():new() oMail:SetEncoder( cEncoding ) oMail:SetCharset( cCharset ) - oMail:SetHeader( cSubject, cFrom, xTo, xCC, xBCC ) + oMail:SetHeader( cSubject, cFrom, xTo, xCC ) oMail:hHeaders[ "Date" ] := tip_Timestamp() IF ! Empty( cReplyTo ) oMail:hHeaders[ "Reply-to" ] := cReplyTo diff --git a/harbour/contrib/sddpg/sddpg.c b/harbour/contrib/sddpg/sddpg.c index 73943e1320..4363088e13 100644 --- a/harbour/contrib/sddpg/sddpg.c +++ b/harbour/contrib/sddpg/sddpg.c @@ -312,6 +312,7 @@ static HB_ERRCODE pgsqlOpen( SQLBASEAREAP pArea ) break; case INT8OID: + case OIDOID: pFieldInfo.uiType = HB_FT_LONG; pFieldInfo.uiLen = 20; break;