[Koha-bugs] [Bug 20891] Lists in staff don't load when \ was used in the description
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Apr 24 17:29:36 CEST 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20891
Liz Rea <wizzyrea at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #75890|0 |1
is obsolete| |
Attachment #75922|0 |1
is obsolete| |
--- Comment #18 from Liz Rea <wizzyrea at gmail.com> ---
Created attachment 88637
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=88637&action=edit
Bug 20891: Escape list's names in JSON
When someone uses \ in the description of a list, the datatable in staff
won't load and keeps processing.
Test plan:
- Create a list named "<script>alert('hola');</script>"
- Create another list named "k\o\h\a"
- Hit /cgi-bin/koha/virtualshelves/shelves.pl
=> Without this patch the lists will not be displayed, JSON is
malformated
=> With this patch everything is ok
Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
Signed-off-by: Liz Rea <wizzyrea at gmail.com>
Resolved minor merge issues, QA plz check they are ok - but it works.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list