X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_network.php;h=1bf374657573b5785e38622f0b716ff8bfcffd7b;hb=0c9cc29a51941eb572bf16fd5489d0947d47d033;hp=18c630fdf08f9fac91ed81df75fe91d5d3e583f5;hpb=fc8379b1080823bb69664aa4119ba190e1f5b1ca;p=friendica.git
diff --git a/mod/update_network.php b/mod/update_network.php
index 18c630fdf0..1bf3746575 100644
--- a/mod/update_network.php
+++ b/mod/update_network.php
@@ -1,17 +1,41 @@
\r\n";
- echo (($_GET['msie'] == 1) ? '' : '');
- echo str_replace("\t",' ',network_content($a,true));
- echo (($_GET['msie'] == 1) ? '
' : '');
+ echo "";
+
+ if (!get_pconfig($profile_uid, "system", "no_auto_update") OR ($_GET['force'] == 1))
+ $text = network_content($a,$profile_uid);
+ else
+ $text = "";
+
+ $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 "";
echo "\r\n";
killme();
-}
\ No newline at end of file
+}