aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-05-04 22:46:43 +0200
committerMario Vavti <mario@mariovavti.com>2018-05-04 22:46:43 +0200
commitf995ef012444617ead1760d16f712ca0051dc68b (patch)
tree792c934fbea88dd6b956c2b3da70b24535fe7f9a /include/network.php
parent90cf238019a06e4f76a4523e9f78243edd3c14f6 (diff)
downloadvolse-hubzilla-f995ef012444617ead1760d16f712ca0051dc68b.tar.gz
volse-hubzilla-f995ef012444617ead1760d16f712ca0051dc68b.tar.bz2
volse-hubzilla-f995ef012444617ead1760d16f712ca0051dc68b.zip
set XML_OPTION_SKIP_WHITE to 1 again
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/network.php b/include/network.php
index a00ede6bf..c55660da8 100644
--- a/include/network.php
+++ b/include/network.php
@@ -807,7 +807,7 @@ function xml2array($contents, $namespaces = true, $get_attributes=1, $priority =
xml_parser_set_option($parser, XML_OPTION_TARGET_ENCODING, "UTF-8");
// http://minutillo.com/steve/weblog/2004/6/17/php-xml-and-character-encodings-a-tale-of-sadness-rage-and-data-loss
xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0);
- xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 0);
+ xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1);
@xml_parse_into_struct($parser, trim($contents), $xml_values);
@xml_parser_free($parser);
@@ -2052,4 +2052,4 @@ function jsonld_document_loader($url) {
}
return [];
-} \ No newline at end of file
+}