diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-11-11 21:35:56 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-11-11 21:35:56 +0100 |
commit | bd3bc503edc9fd5035ed54070b0adf8760e402fa (patch) | |
tree | 0a4cbac294969ebc374e633488598beff8fde752 /include/bbcode.php | |
parent | 823729d2c1ea202a463c645d3a84ebf35140bd9f (diff) | |
parent | 34b38f06e00d929c3004ca7ee961405de0a209e1 (diff) | |
download | volse-hubzilla-bd3bc503edc9fd5035ed54070b0adf8760e402fa.tar.gz volse-hubzilla-bd3bc503edc9fd5035ed54070b0adf8760e402fa.tar.bz2 volse-hubzilla-bd3bc503edc9fd5035ed54070b0adf8760e402fa.zip |
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'include/bbcode.php')
-rw-r--r-- | include/bbcode.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/bbcode.php b/include/bbcode.php index 9a2a6eb9b..050ab2d29 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -838,13 +838,13 @@ function bbcode($Text, $preserve_nl = false, $tryoembed = true, $cache = false) // Perform URL Search - $urlchars = '[a-zA-Z0-9\:\/\-\?\&\;\.\=\_\~\#\%\$\!\+\,\@\(\)]'; + $urlchars = '[a-zA-Z0-9\pL\:\/\-\?\&\;\.\=\_\~\#\%\$\!\+\,\@\(\)]'; if (strpos($Text,'http') !== false) { if($tryoembed) { - $Text = preg_replace_callback("/([^\]\='".'"'."\/]|^|\#\^)(https?\:\/\/$urlchars+)/ism", 'tryoembed', $Text); + $Text = preg_replace_callback("/([^\]\='".'"'."\/]|^|\#\^)(https?\:\/\/$urlchars+)/ismu", 'tryoembed', $Text); } - $Text = preg_replace("/([^\]\='".'"'."\/]|^|\#\^)(https?\:\/\/$urlchars+)/ism", '$1<a href="$2" target="_blank" rel="nofollow noopener">$2</a>', $Text); + $Text = preg_replace("/([^\]\='".'"'."\/]|^|\#\^)(https?\:\/\/$urlchars+)/ismu", '$1<a href="$2" target="_blank" rel="nofollow noopener">$2</a>', $Text); } if (strpos($Text,'[/share]') !== false) { |