X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_network.php;h=36de0722a9dcace04bb1e527a3ab977792da348b;hb=355c42cb309eb1313097411067ca999b699aa620;hp=35e968dba994a61aaf50ffec1ba37d959d710f24;hpb=3ad52463f633b060bee519e8aa4d6e9453fdc2aa;p=friendica.git diff --git a/mod/update_network.php b/mod/update_network.php index 35e968dba9..36de0722a9 100644 --- a/mod/update_network.php +++ b/mod/update_network.php @@ -3,7 +3,7 @@ // See update_profile.php for documentation require_once('mod/network.php'); - +require_once('include/group.php'); function update_network_content(&$a) { @@ -19,6 +19,17 @@ function update_network_content(&$a) { $replace = "'; + $pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i"; + $text = preg_replace($pattern, $replace, $text); + $pattern = "/<\s*video[^>]*>(.*?)<\s*\/\s*video>/i"; + $text = preg_replace($pattern, $replace, $text); + $pattern = "/<\s*embed[^>]*>(.*?)<\s*\/\s*embed>/i"; + $text = preg_replace($pattern, $replace, $text); + $pattern = "/<\s*iframe[^>]*>(.*?)<\s*\/\s*iframe>/i"; + $text = preg_replace($pattern, $replace, $text); + + echo str_replace("\t",' ',$text); echo (($_GET['msie'] == 1) ? '' : ''); echo "\r\n";