summaryrefslogtreecommitdiff
path: root/external/liborcus
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-08-12 11:23:30 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-08-12 12:12:57 +0200
commitd1195c097126c4986462857d01e27ee33352fbd1 (patch)
treecb18e7526bdc594020bd0ffdd66b997d832d9760 /external/liborcus
parent2d05d0ed9fabb001be8d4fb93e3ecf9323977f69 (diff)
orcus: xml header is only mandatory in xml 1.1+
Change-Id: I28aa8a2f340cb1a100dfa5d10d8d6e9b8dac2479 Reviewed-on: https://gerrit.libreoffice.org/41080 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'external/liborcus')
-rw-r--r--external/liborcus/UnpackedTarball_liborcus.mk1
-rw-r--r--external/liborcus/orcus_allow_missing_xml_header.patch.112
2 files changed, 13 insertions, 0 deletions
diff --git a/external/liborcus/UnpackedTarball_liborcus.mk b/external/liborcus/UnpackedTarball_liborcus.mk
index b37384e65d62..7bf65cbdcd41 100644
--- a/external/liborcus/UnpackedTarball_liborcus.mk
+++ b/external/liborcus/UnpackedTarball_liborcus.mk
@@ -19,6 +19,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,liborcus,\
external/liborcus/visibility.patch.0 \
external/liborcus/iOS.patch \
external/liborcus/nullptr-in-ostringstream.patch.1 \
+ external/liborcus/orcus_allow_missing_xml_header.patch.1 \
))
ifeq ($(OS),WNT)
diff --git a/external/liborcus/orcus_allow_missing_xml_header.patch.1 b/external/liborcus/orcus_allow_missing_xml_header.patch.1
new file mode 100644
index 000000000000..2cfd498c7eae
--- /dev/null
+++ b/external/liborcus/orcus_allow_missing_xml_header.patch.1
@@ -0,0 +1,12 @@
+diff -ur liborcus.org/include/orcus/sax_parser.hpp liborcus/include/orcus/sax_parser.hpp
+--- liborcus.org/include/orcus/sax_parser.hpp 2017-08-12 09:44:21.379509116 +0200
++++ liborcus/include/orcus/sax_parser.hpp 2017-08-12 09:46:06.884259216 +0200
+@@ -20,7 +20,7 @@
+ * parsing regardless of whether or not the xml stream begins with a
+ * <?xml..?> declaration.
+ */
+- static const bool strict_xml_declaration = true;
++ static const bool strict_xml_declaration = false;
+ };
+
+ /**