aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2019-11-08 13:07:42 -0800
committerzotlabs <mike@macgirvin.com>2019-11-08 13:07:42 -0800
commit17522b31e9d7f092ecf5565ec28be270af7fad7b (patch)
tree109ef6f1e5f7b45caecc5422f9b68cad9dcaf6a0 /include/bbcode.php
parenta5826fec251447c1d9c94700183e9ed458127fba (diff)
downloadvolse-hubzilla-17522b31e9d7f092ecf5565ec28be270af7fad7b.tar.gz
volse-hubzilla-17522b31e9d7f092ecf5565ec28be270af7fad7b.tar.bz2
volse-hubzilla-17522b31e9d7f092ecf5565ec28be270af7fad7b.zip
exempt svg from tag completion
Diffstat (limited to 'include/bbcode.php')
-rw-r--r--include/bbcode.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index 84f0f3dda..c7dea53c5 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -966,9 +966,9 @@ function bbcode($Text, $options = []) {
if (strpos($Text,'http') !== false) {
if($tryoembed) {
- $Text = preg_replace_callback("/([^\]\='".'"'."\/]|^|\#\^)(https?\:\/\/$urlchars+)/ismu", 'tryoembed', $Text);
+ $Text = preg_replace_callback("/([^\]\='".'"'."\;\/]|^|\#\^)(https?\:\/\/$urlchars+)/ismu", 'tryoembed', $Text);
}
- $Text = preg_replace("/([^\]\='".'"'."\/]|^|\#\^)(https?\:\/\/$urlchars+)/ismu", '$1<a href="$2" ' . $target . ' rel="nofollow noopener">$2</a>', $Text);
+ $Text = preg_replace("/([^\]\='".'"'."\;\/]|^|\#\^)(https?\:\/\/$urlchars+)/ismu", '$1<a href="$2" ' . $target . ' rel="nofollow noopener">$2</a>', $Text);
}
if (strpos($Text,'[/share]') !== false) {