mirror of
https://github.com/friendica/friendica
synced 2025-04-23 09:50:11 +00:00
filter the protocol specifier in bbcode links.
This commit is contained in:
parent
884454f7ed
commit
749ae9b297
3 changed files with 4 additions and 3 deletions
|
@ -386,6 +386,7 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) {
|
|||
|
||||
// fix any escaped ampersands that may have been converted into links
|
||||
$Text = preg_replace("/\<(.*?)(src|href)=(.*?)\&\;(.*?)\>/ism",'<$1$2=$3&$4>',$Text);
|
||||
$Text = preg_replace("/\<(.*?)(src|href)=\"[^hfm](.*?)\>/ism",'<$1$2="">',$Text);
|
||||
|
||||
if($saved_image)
|
||||
$Text = bb_replace_images($Text, $saved_image);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue