X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Ffilerm.php;h=9013dd62b4880ee1d80c920570b4a0c6a7729e10;hb=6c341962648b73c935c2de26996b07332b776a1f;hp=d240c2d6a757927df98f1bf81134889c7e69da16;hpb=96a43d0db915fc2fc4d61de4ab649e951c352504;p=friendica.git diff --git a/mod/filerm.php b/mod/filerm.php index d240c2d6a7..9013dd62b4 100644 --- a/mod/filerm.php +++ b/mod/filerm.php @@ -2,7 +2,6 @@ use Friendica\App; use Friendica\Core\Logger; -use Friendica\Core\System; use Friendica\Model\FileTag; use Friendica\Util\XML; @@ -10,10 +9,10 @@ function filerm_content(App $a) { if (! local_user()) { - killme(); + exit(); } - $term = XML::unescape(trim($_GET['term'])); + $term = XML::unescape(trim(defaults($_GET, 'term', ''))); $cat = XML::unescape(trim(defaults($_GET, 'cat', ''))); $category = (($cat) ? true : false); @@ -37,5 +36,5 @@ function filerm_content(App $a) } $a->internalRedirect('/network?f=&file=' . rawurlencode($term)); - killme(); + exit(); }