X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=mod%2Fupdate_network.php;h=36de0722a9dcace04bb1e527a3ab977792da348b;hb=46b220518c0a95d394398998711088ac1268c343;hp=18c630fdf08f9fac91ed81df75fe91d5d3e583f5;hpb=fc8379b1080823bb69664aa4119ba190e1f5b1ca;p=friendica.git
diff --git a/mod/update_network.php b/mod/update_network.php
index 18c630fdf0..36de0722a9 100644
--- a/mod/update_network.php
+++ b/mod/update_network.php
@@ -1,15 +1,36 @@
\r\n";
echo (($_GET['msie'] == 1) ? '' : '
');
- echo str_replace("\t",' ',network_content($a,true));
+
+
+ $text = network_content($a,$profile_uid);
+ $pattern = "/
]*) src=\"([^\"]*)\"/";
+ $replace = "
' . t('[Embedded content - reload page to view]') . '
';
+ $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";
killme();