X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_network.php;h=11dfc5e03c8de2f469a134de5ffe02195800e078;hb=684dfd5bbd5c6bea1fee22d121e558cee16ec120;hp=fddbeba397e30db851ef3c251744f9f4835368b7;hpb=6b44fbbda03af125035c185c964f10ce78f97610;p=friendica.git diff --git a/mod/update_network.php b/mod/update_network.php index fddbeba397..11dfc5e03c 100644 --- a/mod/update_network.php +++ b/mod/update_network.php @@ -12,23 +12,24 @@ require_once "mod/network.php"; function update_network_content(App $a) { - $profile_uid = intval($_GET["p"]); + if (!isset($_GET['p']) || !isset($_GET['item'])) { + killme(); + } + + $profile_uid = intval($_GET['p']); + $parent = intval($_GET['item']); header("Content-type: text/html"); echo "\r\n"; echo "
"; if (!PConfig::get($profile_uid, "system", "no_auto_update") || ($_GET["force"] == 1)) { - $text = network_content($a, $profile_uid); + $text = network_content($a, $profile_uid, $parent); } else { $text = ""; } - $pattern = "/]*) src=\"([^\"]*)\"/"; - $replace = ""; $pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i"; $text = preg_replace($pattern, $replace, $text);