[Koha-bugs] [Bug 34549] The cataloguing editor allows you to input invalid data

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Aug 17 06:33:13 CEST 2023


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

--- Comment #4 from David Cook <dcook at prosentient.com.au> ---
Created attachment 154480
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=154480&action=edit
Bug 34549: Strip non-XML chars during TransformHtmlToMarc

This patch strips non-XML characters from inputs during
TransformHtmlToMarc.

To test:
0. Apply patch
1. koha-plack --restart kohadev
2. Go to http://localhost:8081/cgi-bin/koha/cataloguing/addbiblio.pl
3. Fill out record and use the text from "Text file containing control
characters"
as the title
4. Click Save
5. Note that your record displays without any warnings like the following:
Error: invalid data, cannot decode metadata object
parser error : PCDATA invalid Char value 27

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


More information about the Koha-bugs mailing list