allow urls using the zot: or zots: URL schemes to exist without getting filtered away.
This commit is contained in:
parent
9d1df58759
commit
65ffd209d4
@ -864,7 +864,7 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) {
|
|||||||
// fix any escaped ampersands that may have been converted into links
|
// 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)=(.*?)\&\;(.*?)\>/ism",'<$1$2=$3&$4>',$Text);
|
||||||
|
|
||||||
$Text = preg_replace("/\<(.*?)(src|href)=\"[^hfm#](.*?)\>/ism",'<$1$2="">',$Text);
|
$Text = preg_replace("/\<(.*?)(src|href)=\"[^zhfm#](.*?)\>/ism",'<$1$2="">',$Text);
|
||||||
|
|
||||||
$Text = bb_replace_images($Text,$saved_images);
|
$Text = bb_replace_images($Text,$saved_images);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user