aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-08-02 22:11:46 -0700
committergit-marijus <mario@mariovavti.com>2017-08-03 22:01:49 +0200
commitb4707705f15bda8c3bc4e21b7dd53ddcece69064 (patch)
tree5bcb29cf2a1f92891b13fb8a125dae27cd17ec55
parent05444f92f98967841bfde9a3a88115cc13d09a92 (diff)
downloadvolse-hubzilla-b4707705f15bda8c3bc4e21b7dd53ddcece69064.tar.gz
volse-hubzilla-b4707705f15bda8c3bc4e21b7dd53ddcece69064.tar.bz2
volse-hubzilla-b4707705f15bda8c3bc4e21b7dd53ddcece69064.zip
minor activitypub rendering stuff
-rw-r--r--Zotlabs/Module/Ap_probe.php2
-rw-r--r--include/bbcode.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Ap_probe.php b/Zotlabs/Module/Ap_probe.php
index f788fa73a..769cd4c4e 100644
--- a/Zotlabs/Module/Ap_probe.php
+++ b/Zotlabs/Module/Ap_probe.php
@@ -30,7 +30,7 @@ class Ap_probe extends \Zotlabs\Web\Controller {
$redirects = 0;
$x = z_fetch_url($addr,true,$redirects, [ 'headers' => [ $headers ]]);
if($x['success'])
- $o .= '<pre>' . str_replace('\\','',jindent($x['body'])) . '</pre>';
+ $o .= '<pre>' . str_replace(['\\n','\\'],["\n",''],jindent($x['body'])) . '</pre>';
}
return $o;
}
diff --git a/include/bbcode.php b/include/bbcode.php
index c408af35d..9f9b5c5e1 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -7,7 +7,7 @@
require_once('include/oembed.php');
require_once('include/event.php');
require_once('include/zot.php');
-
+require_once('include/html2plain.php');
function get_bb_tag_pos($s, $name, $occurance = 1) {