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

View File

@ -12,7 +12,7 @@ function filerm_content(App $a)
exit(); exit();
} }
$term = XML::unescape(trim($_GET['term'])); $term = XML::unescape(trim(defaults($_GET, 'term', '')));
$cat = XML::unescape(trim(defaults($_GET, 'cat', ''))); $cat = XML::unescape(trim(defaults($_GET, 'cat', '')));
$category = (($cat) ? true : false); $category = (($cat) ? true : false);