From 32aef838f8317ef908f50c02c2edd4a6fa9ee012 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 23 Feb 2013 01:27:43 -0800 Subject: allow embedded content via ajax on page load --- mod/update_display.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'mod/update_display.php') diff --git a/mod/update_display.php b/mod/update_display.php index c8eb9c3a3..5802852bb 100644 --- a/mod/update_display.php +++ b/mod/update_display.php @@ -16,11 +16,12 @@ function update_display_content(&$a) { echo (($_GET['msie'] == 1) ? '
' : '
'); - $text = display_content($a,$profile_uid, $load); - $pattern = "/]*) src=\"([^\"]*)\"/"; - $replace = "'; $pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i"; $text = preg_replace($pattern, $replace, $text); @@ -30,9 +31,9 @@ function update_display_content(&$a) { $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 str_replace("\t",' ',$text); echo (($_GET['msie'] == 1) ? '
' : ''); echo "\r\n"; // logger('update_display: ' . $text); -- cgit v1.2.3