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)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 10 May 2024 15:46:12 +0000 (17:46 +0200)
commit11c69496bcd216ad264acd87409e5160c73995bf
treedc9ab183d1548b23ca1c57c2ce18ed5441297eb5
parent3878dbe9994186d70b3eb94e5096d4d1c6cf5452
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>
etc/z3950/config.xml