X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FHashtag.php;h=a460ae1d98887a25562e6299d2f91e9b5347177b;hb=52789f3ae4a07b79fabc99ab01386617fa75183f;hp=bfe1eee7de3eb79e1a7142564470af1d9249b17a;hpb=71ec84f6dc83f753fe80170cfdfd32d202850d90;p=friendica.git diff --git a/src/Module/Hashtag.php b/src/Module/Hashtag.php index bfe1eee7de..a460ae1d98 100644 --- a/src/Module/Hashtag.php +++ b/src/Module/Hashtag.php @@ -7,9 +7,7 @@ namespace Friendica\Module; use Friendica\BaseModule; use Friendica\Core\System; use Friendica\Database\DBA; - -require_once 'include/dba.php'; -require_once 'include/text.php'; +use Friendica\Util\Strings; /** * Hashtag module. @@ -17,11 +15,11 @@ require_once 'include/text.php'; class Hashtag extends BaseModule { - public static function content() + public static function content(array $parameters = []) { $result = []; - $t = escape_tags($_REQUEST['t']); + $t = Strings::escapeHtml($_REQUEST['t']); if (empty($t)) { System::jsonExit($result); }