From efdb6634a2b59e94cb43d97c97a1e040ce0151e7 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 8 Mar 2019 21:51:23 -0500 Subject: [PATCH] Add defaults() to term parameter in mod/filerm - Addresses part of https://github.com/friendica/friendica/issues/6338#issuecomment-470681556 --- mod/filerm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5