From 13a2444057f6f2f847168d59159b4595d06fc694 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Tue, 30 Aug 2011 12:06:14 +0200 Subject: [PATCH] & in fields content from db/gtktreemodel was considere an xml entity start. fixes #34 --- src/rptreport.c | 10 ++++++++++ tests/db_test.db | Bin 2048 -> 2048 bytes 2 files changed, 10 insertions(+) diff --git a/src/rptreport.c b/src/rptreport.c index 7358297..fd22bad 100644 --- a/src/rptreport.c +++ b/src/rptreport.c @@ -2656,6 +2656,16 @@ gchar { ret = g_strdup ("{ERROR}"); } + else + { + gchar **strv; + + strv = g_strsplit (ret, "&", -1); + g_free (ret); + + ret = g_strjoinv ("&", strv); + g_strfreev (strv); + } return ret; } diff --git a/tests/db_test.db b/tests/db_test.db index 4c331e8f9990be508bbf9d003b927dc874a72448..886a435d853955e427b4ffa5d2ce4c7def3d1715 100644 GIT binary patch delta 84 zcmZn=Xb_kn&C1Qdz`!(7!JeO+LHCh7FObK`yn%sv!)8SmC+5i;m_sDEm