aboutsummaryrefslogtreecommitdiffstats
path: root/include/markdown.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-11-23 15:21:50 -0800
committerzotlabs <mike@macgirvin.com>2017-11-23 15:21:50 -0800
commita99ebd42ec47ea531496f8ca5c07bf2868e21467 (patch)
treeec417053a87c0e501cb93c70c8ad3adc07abd8b2 /include/markdown.php
parent0cfe2ecd7bd77e2208e444350804682652686acc (diff)
downloadvolse-hubzilla-a99ebd42ec47ea531496f8ca5c07bf2868e21467.tar.gz
volse-hubzilla-a99ebd42ec47ea531496f8ca5c07bf2868e21467.tar.bz2
volse-hubzilla-a99ebd42ec47ea531496f8ca5c07bf2868e21467.zip
change to bbcode calling parameters: important: will require pulling addons;
also some extra checking of server headers in upload functions
Diffstat (limited to 'include/markdown.php')
-rw-r--r--include/markdown.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/markdown.php b/include/markdown.php
index f398d279e..e4a35e3c3 100644
--- a/include/markdown.php
+++ b/include/markdown.php
@@ -204,7 +204,7 @@ function bb_to_markdown($Text, $options = []) {
$Text = $x['bbcode'];
// Convert it to HTML - don't try oembed
- $Text = bbcode($Text, $preserve_nl, false);
+ $Text = bbcode($Text, [ 'tryoembed' => false ]);
// Markdownify does not preserve previously escaped html entities such as <> and &.
$Text = str_replace(array('&lt;','&gt;','&amp;'),array('&_lt_;','&_gt_;','&_amp_;'),$Text);