r16794 - gnucash/branches/2.2/src/import-export/ofx - [r16755] #505386: Strip non-utf8 characters from ofx check and reference number strings.

Andreas Köhler andi5 at cvs.gnucash.org
Fri Jan 4 19:52:25 EST 2008


Author: andi5
Date: 2008-01-04 19:52:25 -0500 (Fri, 04 Jan 2008)
New Revision: 16794
Trac: http://svn.gnucash.org/trac/changeset/16794

Modified:
   gnucash/branches/2.2/src/import-export/ofx/gnc-ofx-import.c
Log:
[r16755] #505386: Strip non-utf8 characters from ofx check and reference number strings.

Approved by andrewsw.


Modified: gnucash/branches/2.2/src/import-export/ofx/gnc-ofx-import.c
===================================================================
--- gnucash/branches/2.2/src/import-export/ofx/gnc-ofx-import.c	2008-01-05 00:52:15 UTC (rev 16793)
+++ gnucash/branches/2.2/src/import-export/ofx/gnc-ofx-import.c	2008-01-05 00:52:25 UTC (rev 16794)
@@ -129,6 +129,10 @@
 	  gnc_utf8_strip_invalid(data.name);
 	if (data.memo_valid)
 	  gnc_utf8_strip_invalid(data.memo);
+	if (data.check_number_valid)
+	  gnc_utf8_strip_invalid(data.check_number);
+	if (data.reference_number_valid)
+	  gnc_utf8_strip_invalid(data.reference_number);
 
 	/********** Create the transaction and setup transaction data ************/
 	book = gnc_account_get_book(account);



More information about the gnucash-changes mailing list