aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.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/bbcode.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/bbcode.php')
-rw-r--r--include/bbcode.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index 7ebc8d37c..fd476766e 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -707,10 +707,12 @@ function parseIdentityAwareHTML($Text) {
return $Text;
}
- // BBcode 2 HTML was written by WAY2WEB.net
- // extended to work with Mistpark/Friendica/Redmatrix/Hubzilla - Mike Macgirvin
-function bbcode($Text, $preserve_nl = false, $tryoembed = true, $cache = false) {
+function bbcode($Text, $options = []) {
+
+ $preserve_nl = ((array_key_exists('preserve_nl',$options)) ? $options['preserve_nl'] : false);
+ $tryoembed = ((array_key_exists('tryomebed',$options)) ? $options['tryoembed'] : true);
+ $cache = ((array_key_exists('cache',$options)) ? $options['cache'] : false);
call_hooks('bbcode_filter', $Text);