[Bug 22369] New: Guarantor search broken by double quotes in address
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22369 Bug ID: 22369 Summary: Guarantor search broken by double quotes in address Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Patrons Assignee: koha-bugs@lists.koha-community.org Reporter: fridolin.somers@biblibre.com QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com, kyle.m.hall@gmail.com Target Milestone: --- Guarantor search uses Ajax to build patrons search results table. This uses a complex multi escape layers : intranet-tmpl/prog/en/modules/members/tables/guarantor_search.tt : "<a href=\"#\" class=\"btn btn-default btn-xs select_user\" data-borrowernumber=\"[% data.borrowernumber | html %]\">Select</a><input type=\"hidden\" id=\"borrower_data[% data.borrowernumber | html %]\" name=\"borrower_data[% data.borrowernumber | html %]\" value=\"[% To.json(data) | html %]\" />" This is broken if the found guarantor address contains a double quote. I think because it is JSON converted to \" and then html converted to \" which is a non valid JSON. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22369 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE CC| |jonathan.druart@bugs.koha-c | |ommunity.org Status|NEW |RESOLVED --- Comment #1 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Marked as dup of bug 22316 (not exactly the same issue, but must be fixed together) *** This bug has been marked as a duplicate of bug 22316 *** -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org