]> git.mxchange.org Git - friendica.git/blobdiff - mod/search.php
notags calls
[friendica.git] / mod / search.php
index 809a6f7e86e50f013546c90545289cf9d71ad3bc..9824c489a6a00ebb1c9e1d06fd4230f6cece6b79 100644 (file)
@@ -16,6 +16,7 @@ use Friendica\Core\Renderer;
 use Friendica\Core\System;
 use Friendica\Database\DBA;
 use Friendica\Model\Item;
+use Friendica\Util\Strings;
 
 require_once 'include/conversation.php';
 require_once 'mod/dirfind.php';
@@ -23,7 +24,7 @@ require_once 'mod/dirfind.php';
 function search_saved_searches() {
 
        $o = '';
-       $search = ((x($_GET,'search')) ? notags(trim(rawurldecode($_GET['search']))) : '');
+       $search = ((x($_GET,'search')) ? Strings::removeTags(trim(rawurldecode($_GET['search']))) : '');
 
        if (!Feature::isEnabled(local_user(),'savedsearch'))
                return $o;
@@ -62,7 +63,7 @@ function search_saved_searches() {
 
 function search_init(App $a) {
 
-       $search = ((x($_GET,'search')) ? notags(trim(rawurldecode($_GET['search']))) : '');
+       $search = ((x($_GET,'search')) ? Strings::removeTags(trim(rawurldecode($_GET['search']))) : '');
 
        if (local_user()) {
                if (x($_GET,'save') && $search) {
@@ -149,14 +150,14 @@ function search_content(App $a) {
 
        $search = '';
        if (x($a->data,'search'))
-               $search = notags(trim($a->data['search']));
+               $search = Strings::removeTags(trim($a->data['search']));
        else
-               $search = ((x($_GET,'search')) ? notags(trim(rawurldecode($_GET['search']))) : '');
+               $search = ((x($_GET,'search')) ? Strings::removeTags(trim(rawurldecode($_GET['search']))) : '');
 
        $tag = false;
        if (x($_GET,'tag')) {
                $tag = true;
-               $search = (x($_GET,'tag') ? '#' . notags(trim(rawurldecode($_GET['tag']))) : '');
+               $search = (x($_GET,'tag') ? '#' . Strings::removeTags(trim(rawurldecode($_GET['tag']))) : '');
        }
 
        // contruct a wrapper for the search header