Add defaults() to term parameter in mod/filerm

- Addresses part of https://github.com/friendica/friendica/issues/6338#issuecomment-470681556
This commit is contained in:
Hypolite Petovan 2019-03-08 21:51:23 -05:00
parent 75d144aee7
commit efdb6634a2
1 changed files with 1 additions and 1 deletions

View File

@ -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);