[Koha-bugs] [Bug 19655] To.json doesn't escape newlines which can create invalid JSON

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Nov 26 17:01:32 CET 2017


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

Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonathan.druart at bugs.koha-c
                   |                            |ommunity.org

--- Comment #5 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
I am not sure it is the best way to fix it.
1. We may encounter issues later using To.json on other values that use escaped
strings (ok we will update the code to make it works)
2. Maybe we should replace all \\ with \\\\

I will push as it and adapt later if needed.

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


More information about the Koha-bugs mailing list