https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41151
--- Comment #66 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 204760 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=204760&action=edit Bug 41151: (follow-up) Quote comma-bearing repeat values in strings_map The previous display fix on this bug left a latent issue: when a repeatable additional field held a value that itself contained a comma (e.g. "a,b,c"), the joined value_str was indistinguishable from three plain repeats. Any consumer that split on "," would mangle the data. Encode value_str with a CSV-style convention: the separator stays ", ", but any individual value containing "," or '"' is wrapped in double quotes with internal quotes doubled (RFC 4180-ish). Plain values pass through unchanged, so "red, blue, green" still round-trips as-is, while "a,b,c" / "b" / "c" now encodes as '"a,b,c", b, c' and is losslessly parsable. Test plan: prove t/db_dependent/Koha/Object/Mixin/AdditionalFields.t -- You are receiving this mail because: 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/
