aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-26 03:54:27 -0700
committerfriendica <info@friendica.com>2013-08-26 03:54:27 -0700
commit2f2a316b27221759d433a786fb3485238f032a37 (patch)
treec9fa81d5aada7e235d885c973695c4fb7b07064d /include/bbcode.php
parente9125ce06534736290e461508b5f5092ca73b02d (diff)
downloadvolse-hubzilla-2f2a316b27221759d433a786fb3485238f032a37.tar.gz
volse-hubzilla-2f2a316b27221759d433a786fb3485238f032a37.tar.bz2
volse-hubzilla-2f2a316b27221759d433a786fb3485238f032a37.zip
regex patch
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 a0a53a310..9f9489893 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -271,7 +271,7 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) {
$urlchars = '[a-zA-Z0-9\:\/\-\?\&\;\.\=\@\_\~\#\%\$\!\+\,]';
if (strpos($Text,'http') !== false) {
- $Text = preg_replace("/([^\]\='".'"'."]|^)(https?\:\/\/$urlchars+)/ism", '$1<a href="$2" >$2</a>', $Text);
+ $Text = preg_replace("/([^\"\]\='".'"'."]|^)(https?\:\/\/$urlchars+)/ism", '$1<a href="$2" >$2</a>', $Text);
}
if (strpos($Text,'[/share]') !== false) {
$Text = preg_replace_callback("/\[share(.*?)\](.*?)\[\/share\]/ism","bb_ShareAttributes",$Text);