aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-05-04 13:44:34 -0700
committerzotlabs <mike@macgirvin.com>2018-05-04 13:44:34 -0700
commit4a26f0d2d42825646d574531bbb89c7b17df9d69 (patch)
tree78f90b33d468429d9b0d886e7739b9c75bad1b6b /include
parent56113b0bde6ea78f1ac0c61eb6ca9324900035c2 (diff)
downloadvolse-hubzilla-4a26f0d2d42825646d574531bbb89c7b17df9d69.tar.gz
volse-hubzilla-4a26f0d2d42825646d574531bbb89c7b17df9d69.tar.bz2
volse-hubzilla-4a26f0d2d42825646d574531bbb89c7b17df9d69.zip
turn skip white back on - (xml actually doesn't parse if you disable this)
Diffstat (limited to 'include')
-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..8b7490a8a 100644
--- a/include/network.php
+++ b/include/network.php
@@ -797,7 +797,7 @@ function xml2array($contents, $namespaces = true, $get_attributes=1, $priority =
if($namespaces)
$parser = @xml_parser_create_ns("UTF-8",':');
else
- $parser = @xml_parser_create('UTF-8');
+ $parser = @xml_parser_create();
if(! $parser) {
logger('xml2array: xml_parser_create: no resource');
@@ -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);