aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-08-02 22:11:46 -0700
committerzotlabs <mike@macgirvin.com>2017-08-02 22:11:46 -0700
commitbee09a6d8bbfd0da650aeeb5081648aa1e6c45f6 (patch)
tree85221a6a86baff0dd0e378d10eb9b3cf87e8a9ab
parent9359f9fe4d77de392660c2bf6f1df8becc9fa6bf (diff)
downloadvolse-hubzilla-bee09a6d8bbfd0da650aeeb5081648aa1e6c45f6.tar.gz
volse-hubzilla-bee09a6d8bbfd0da650aeeb5081648aa1e6c45f6.tar.bz2
volse-hubzilla-bee09a6d8bbfd0da650aeeb5081648aa1e6c45f6.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) {