Use OpenILS::SIP::clean_text on fine_items output user/jeff/sip_fine_items_checksum_friendly
authorJeff Godin <jgodin@tadl.org>
Wed, 1 Aug 2012 20:59:36 +0000 (16:59 -0400)
committerJeff Godin <jgodin@tadl.org>
Wed, 1 Aug 2012 21:02:42 +0000 (17:02 -0400)
Use OpenILS::SIP::clean_text on fine_items output, so that UTF-8
characters don't break SIP2 error detection checksums.

Signed-off-by: Jeff Godin <jgodin@tadl.org>
Open-ILS/src/perlmods/lib/OpenILS/SIP/Patron.pm

index 75f030a..460e78d 100644 (file)
@@ -637,7 +637,7 @@ sub fine_items {
                 } else {
                     $line .= $xact->last_billing_note;
                 }
-                push @fines, $line;
+                push @fines, OpenILS::SIP::clean_text($line);
            }
     };
     my $log_status = $@ ? 'ERROR: ' . $@ : 'OK';