]> git.mxchange.org Git - friendica.git/commitdiff
Add defaults() to term parameter in mod/filerm
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 9 Mar 2019 02:51:23 +0000 (21:51 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 9 Mar 2019 02:51:23 +0000 (21:51 -0500)
- Addresses part of https://github.com/friendica/friendica/issues/6338#issuecomment-470681556

mod/filerm.php

index b1f9f8d74b88989518469f238694ad7e8a6bdd10..9013dd62b4880ee1d80c920570b4a0c6a7729e10 100644 (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);