https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42025
Marcel de Rooy <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #1 from Marcel de Rooy <[email protected]> --- Current code in upload.tt [% IF msg %] const msg_alert = [% msg.json | json #Using JSON.Escape %]; [% ELSE %] const msg_alert = null; [% END %] And later: if (msg_alert) { ShowAlerts(msg_alert); } The other ShowAlerts is in the cbUpload callback. Where err directly comes from: data = JSON.parse(xhr.responseText); in js/file-upload.js. The least we could do, is escaping on data? (Instead of large refactoring.) And we could also go further and validate what we get there (altough it should come from our Koha server..) Will add two patches here. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
