Bug 24052: Add koha_xslt_security to koha-conf.xml
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 27 Feb 2020 08:02:03 +0000 (08:02 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 24 Mar 2020 10:42:23 +0000 (10:42 +0000)
The line for enabling the unsafe expand_entities option is commented
and includes a warning to keep it like that ;)

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

debian/templates/koha-conf-site.xml.in
etc/koha-conf.xml

index ded7ace..319f492 100644 (file)
@@ -426,5 +426,13 @@ __END_SRU_PUBLICSERVER__
     </repo>
  </plugin_repos>
 
+ <koha_xslt_security>
+ <!-- Uncomment the following entry ONLY when you explicitly want the XSLT
+      parser to expand entities like <!ENTITY secret SYSTEM "/etc/secrets">.
+      This is unsafe and therefore NOT recommended!
+     <expand_entities_unsafe>1</expand_entities_unsafe>
+ -->
+ </koha_xslt_security>
+
 </config>
 </yazgfs>
index 519a9cc..5be267d 100644 (file)
@@ -250,5 +250,13 @@ __PAZPAR2_TOGGLE_XML_POST__
     </repo>
  </plugin_repos>
 
+ <koha_xslt_security>
+ <!-- Uncomment the following entry ONLY when you explicitly want the XSLT
+      parser to expand entities like <!ENTITY secret SYSTEM "/etc/secrets">.
+      This is unsafe and therefore NOT recommended!
+     <expand_entities_unsafe>1</expand_entities_unsafe>
+ -->
+ </koha_xslt_security>
+
 </config>
 </yazgfs>