X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_network.php;h=6ba761d04acf861382fc9714688fdbb83ce5fd67;hb=80f81e670c721067cddf0ffff4ed4f2def1ad69c;hp=88b6fa2ee3b83e38a33f805d710ad0150d7d803a;hpb=29f7ebe307c22b275466390937b82ccb3820fb1c;p=friendica.git diff --git a/mod/update_network.php b/mod/update_network.php index 88b6fa2ee3..6ba761d04a 100644 --- a/mod/update_network.php +++ b/mod/update_network.php @@ -12,6 +12,10 @@ require_once "mod/network.php"; function update_network_content(App $a) { + if (!isset($_GET['p']) || !isset($_GET['item'])) { + exit(); + } + $profile_uid = intval($_GET['p']); $parent = intval($_GET['item']); @@ -25,11 +29,7 @@ function update_network_content(App $a) $text = ""; } - $pattern = "/]*) src=\"([^\"]*)\"/"; - $replace = ""; $pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i"; $text = preg_replace($pattern, $replace, $text); @@ -44,5 +44,5 @@ function update_network_content(App $a) echo str_replace("\t", " ", $text); echo ""; echo "\r\n"; - killme(); + exit(); }