From 34f6d9f7142833ef74355b49fb9cf47f93dcea20 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 4 May 2018 13:54:12 +0200 Subject: missing basetag --- include/text.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/text.php b/include/text.php index c7417a19b..5be44c3cb 100644 --- a/include/text.php +++ b/include/text.php @@ -2559,6 +2559,8 @@ function handle_tag($a, &$body, &$access_tag, &$str_tags, $profile_uid, $tag, $i $basetag = substr($tag,7); $basetag = substr($basetag,0,-6); } + else + $basetag = substr($tag,1); //create text for link @@ -2587,6 +2589,7 @@ function handle_tag($a, &$body, &$access_tag, &$str_tags, $profile_uid, $tag, $i 'url' => $url, 'contact' => $r[0] ]; + } //is it a person tag? @@ -3334,4 +3337,4 @@ function unique_multidim_array($array, $key) { $i++; } return $temp_array; -} \ No newline at end of file +} -- cgit v1.2.3 From f995ef012444617ead1760d16f712ca0051dc68b Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 4 May 2018 22:46:43 +0200 Subject: set XML_OPTION_SKIP_WHITE to 1 again --- include/network.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') 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 +} -- cgit v1.2.3