AUDIT: r16755 - gnucash/trunk/src/import-export/ofx - #505386: Strip non-utf8 characters from ofx check and reference number strings.
Andreas Köhler
andi5 at cvs.gnucash.org
Fri Dec 28 09:45:40 EST 2007
Author: andi5
Date: 2007-12-28 09:45:40 -0500 (Fri, 28 Dec 2007)
New Revision: 16755
Trac: http://svn.gnucash.org/trac/changeset/16755
Modified:
gnucash/trunk/src/import-export/ofx/gnc-ofx-import.c
Log:
#505386: Strip non-utf8 characters from ofx check and reference number strings.
BP
Modified: gnucash/trunk/src/import-export/ofx/gnc-ofx-import.c
===================================================================
--- gnucash/trunk/src/import-export/ofx/gnc-ofx-import.c 2007-12-28 02:27:57 UTC (rev 16754)
+++ gnucash/trunk/src/import-export/ofx/gnc-ofx-import.c 2007-12-28 14:45:40 UTC (rev 16755)
@@ -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