aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-05-02 22:28:27 -0700
committerredmatrix <git@macgirvin.com>2016-05-02 22:28:27 -0700
commitb371c028ad31180b4c73f92b45c4ca8f5fff259e (patch)
tree48340e58f0a8aec3ed03a37f0f810b9380a84c3d /include/bbcode.php
parentb017f8f2ab0154f895a2a960479ee44baf042dc2 (diff)
downloadvolse-hubzilla-b371c028ad31180b4c73f92b45c4ca8f5fff259e.tar.gz
volse-hubzilla-b371c028ad31180b4c73f92b45c4ca8f5fff259e.tar.bz2
volse-hubzilla-b371c028ad31180b4c73f92b45c4ca8f5fff259e.zip
more security stuff
Diffstat (limited to 'include/bbcode.php')
-rw-r--r--include/bbcode.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index 5bd5301cc..7a7ea8ce6 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -629,7 +629,7 @@ function bbcode($Text, $preserve_nl = false, $tryoembed = true, $cache = false)
}
if($tryoembed) {
if (strpos($Text,'[/url]') !== false) {
- $Text = preg_replace_callback("/\[url\]([$URLSearchString]*)\[\/url\]/ism", 'tryoembed', $Text);
+ $Text = preg_replace_callback("/[^\^]\[url\]([$URLSearchString]*)\[\/url\]/ism", 'tryoembed', $Text);
}
}
if (strpos($Text,'[/url]') !== false) {