filter the protocol specifier in bbcode links.

This commit is contained in:
friendica 2012-07-17 18:33:04 -07:00
parent 884454f7ed
commit 749ae9b297
3 changed files with 4 additions and 3 deletions

View file

@ -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)=(.*?)\&amp\;(.*?)\>/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);