]> git.koha-community.org Git - koha.git/commit
Bug 34041: (follow-up) escape double dashes to prevent issues
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 10 May 2024 12:30:53 +0000 (09:30 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 29 May 2024 09:19:54 +0000 (11:19 +0200)
commitafb9cd8e1ccf941ae8cf6e1070dd41a285dcb86b
tree20b3fb07a985b122b536dfa2a5f1965169bf0b0d
parent7773b92a0c1cf86f1e17b2dc519db49abcf3b46f
Bug 34041: (follow-up) escape double dashes to prevent issues

Having double dashes inside a commmented block is not valid XML. This
patch restores it, with an added message explaining it

To test:
1. Run:
   $ xmllint etc/z3950/config.xml
=> FAIL: You get:
etc/z3950/config.xml:5: parser error : Double hyphen within comment: <!--
  <config>
      <z3950_responder_options>
      <z3950_responder_options>--add-item-status k -t 5</z3950_responder_options
2. Apply this patch
3. Repeat 1
=> SUCCESS: All good!

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 11c69496bcd216ad264acd87409e5160c73995bf)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
etc/z3950/config.xml