[Koha-bugs] [Bug 28446] New: Fix encoding of OverDrive content on Your summary, OverDrive Account

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 25 15:10:24 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28446

            Bug ID: 28446
           Summary: Fix encoding of OverDrive content on Your summary,
                    OverDrive Account
 Change sponsored?: ---
           Product: Koha
           Version: 20.11
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: OPAC
          Assignee: magnus at libriotech.no
          Reporter: magnus at libriotech.no
        QA Contact: testopia at bugs.koha-community.org

Created attachment 121377
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=121377&action=edit
Screenshot of bad encoding

If you have borrowed a book from OverDrive it will show on "Your summary", on
the "OverDrive Account" tab. The display includes the title and description,
but this text is encoded wrong, see attached screenshot. 

It looks like the fix is to use to_json instead of encode_json in the call to
output_with_http_headers in opac/svc/overdrive:

  output_with_http_headers $cgi, undef, to_json($data), 'json', $status_line;

I will submit a patch for this once my customer has verified it does not break
anything else.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list