From 0e91810ed6764fbbee54e918711bfb45a1d9fd72 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sun, 26 Nov 2017 18:29:24 -0800 Subject: pubstream comments and a few other bugfixes that were discovered along the way --- Zotlabs/Module/Update_pubstream.php | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'Zotlabs/Module/Update_pubstream.php') diff --git a/Zotlabs/Module/Update_pubstream.php b/Zotlabs/Module/Update_pubstream.php index 952b48df3..8bb5ebfe7 100644 --- a/Zotlabs/Module/Update_pubstream.php +++ b/Zotlabs/Module/Update_pubstream.php @@ -17,23 +17,7 @@ class Update_pubstream extends \Zotlabs\Web\Controller { $mod = new Pubstream(); $text = $mod->get($profile_uid, $load); - $pattern = "/]*) src=\"([^\"]*)\"/"; - $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 str_replace("\t",' ',$text); echo ((array_key_exists('msie',$_GET) && $_GET['msie'] == 1) ? '' : ''); echo "\r\n"; killme(); -- cgit v1.2.3 From cb39d9435da54239e8e36d2d53877a19c10bab83 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Mon, 4 Dec 2017 15:14:58 -0800 Subject: We only require one Update module. The rest are superfluous. --- Zotlabs/Module/Update_pubstream.php | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 Zotlabs/Module/Update_pubstream.php (limited to 'Zotlabs/Module/Update_pubstream.php') diff --git a/Zotlabs/Module/Update_pubstream.php b/Zotlabs/Module/Update_pubstream.php deleted file mode 100644 index 8bb5ebfe7..000000000 --- a/Zotlabs/Module/Update_pubstream.php +++ /dev/null @@ -1,26 +0,0 @@ - 1) && (argv(1) == 'load')) ? 1 : 0); - header("Content-type: text/html"); - echo "\r\n"; - echo ((array_key_exists('msie',$_GET) && $_GET['msie'] == 1) ? '
' : '
'); - - $mod = new Pubstream(); - $text = $mod->get($profile_uid, $load); - - echo str_replace("\t",' ',$text); - echo ((array_key_exists('msie',$_GET) && $_GET['msie'] == 1) ? '
' : ''); - echo "\r\n"; - killme(); - - } -} -- cgit v1.2.3