From: Hypolite Petovan Date: Sat, 9 Mar 2019 02:51:23 +0000 (-0500) Subject: Add defaults() to term parameter in mod/filerm X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=efdb6634a2b59e94cb43d97c97a1e040ce0151e7;p=friendica.git Add defaults() to term parameter in mod/filerm - Addresses part of https://github.com/friendica/friendica/issues/6338#issuecomment-470681556 --- diff --git a/mod/filerm.php b/mod/filerm.php index b1f9f8d74b..9013dd62b4 100644 --- a/mod/filerm.php +++ b/mod/filerm.php @@ -12,7 +12,7 @@ function filerm_content(App $a) 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);