X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_profile.php;h=2492a48ee496d6714ce2513c5a68102fb21f76a4;hb=0c9cc29a51941eb572bf16fd5489d0947d47d033;hp=13c519d1c10f1104caa25302eb98196a58ccdaaa;hpb=2e9dca7c9f0e50956723505ad576bf32e762d11e;p=friendica.git
diff --git a/mod/update_profile.php b/mod/update_profile.php
index 13c519d1c1..2492a48ee4 100644
--- a/mod/update_profile.php
+++ b/mod/update_profile.php
@@ -20,7 +20,7 @@ function update_profile_content(&$a) {
* We can remove this hack once Internet Explorer recognises HTML5 natively
*/
- echo (($_GET['msie'] == 1) ? '
' : '
');
+ echo "";
/**
*
@@ -38,12 +38,22 @@ function update_profile_content(&$a) {
$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);
+
/**
* reportedly some versions of MSIE don't handle tabs in XMLHttpRequest documents very well
*/
echo str_replace("\t",' ',$text);
- echo (($_GET['msie'] == 1) ? ' ' : '');
+ echo "";
echo "