gnokii-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] libgnokii and core programs branch, master, updated. rel_0_6_28-15


From: Daniele Forsi
Subject: [SCM] libgnokii and core programs branch, master, updated. rel_0_6_28-154-g6e71a40
Date: Thu, 24 Dec 2009 15:53:53 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".

The branch, master has been updated
       via  6e71a40c87628f4d7d77c5afd86de1336d20bffb (commit)
      from  93740d82427c91fe380f2c3fa9e84c6fef51ab7e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=6e71a40c87628f4d7d77c5afd86de1336d20bffb


commit 6e71a40c87628f4d7d77c5afd86de1336d20bffb
Author: Daniele Forsi <address@hidden>
Date:   Thu Dec 24 16:50:21 2009 +0100

    Add quoting around phone number to mysql code that handles multipart 
messages. Patch by Paulius Bulotas.

diff --git a/ChangeLog b/ChangeLog
index 949c53c..c396b63 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -78,6 +78,9 @@
  * nk7110 driver updates
     o use GN_SMS_MT_StatusReport to indicate delivery notifications
                                                     (Daniele Forsi)
+ * smsd updates
+    o add quoting around phone number to mysql code that handles
+      multipart messages                          (Paulius Bulotas)
 
 0.6.28
 ======
diff --git a/smsd/ChangeLog b/smsd/ChangeLog
index 48d357f..e7fd1f7 100644
--- a/smsd/ChangeLog
+++ b/smsd/ChangeLog
@@ -1,3 +1,8 @@
+* Thu 24 Dec 2009 Daniele Forsi
+- Add quoting around phone number to mysql code that handles multipart
+  messages. Patch by Paulius Bulotas.
+
+
 * Sun Aug 23 2009 Paweł Kot
 - Enable sending long messages with pq module.
 
diff --git a/smsd/mysql.c b/smsd/mysql.c
index 123db11..a102643 100644
--- a/smsd/mysql.c
+++ b/smsd/mysql.c
@@ -236,7 +236,7 @@ GNOKII_API gint DB_InsertSMS (const gn_sms * const data, 
const gchar * const pho
       }
       g_free(tmpText);
       g_string_printf(buf, "UPDATE multipartinbox SET processed = 1 \
-                            WHERE number=%s AND refnum=%i AND maxnum=%i",
+                            WHERE number='%s' AND refnum=%i AND maxnum=%i",
                       data->remote.number,
                       
data->udh.udh[0].u.concatenated_short_message.reference_number,
                       
data->udh.udh[0].u.concatenated_short_message.maximum_number);

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog      |    3 +++
 smsd/ChangeLog |    5 +++++
 smsd/mysql.c   |    2 +-
 3 files changed, 9 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
libgnokii and core programs




reply via email to

[Prev in Thread] Current Thread [Next in Thread]