mirror of
https://github.com/friendica/friendica
synced 2025-04-21 02:30:11 +00:00
escape_tags calls
implement escapeTags function
This commit is contained in:
parent
a0f65ca7a1
commit
0e01568ccd
16 changed files with 52 additions and 50 deletions
|
@ -7,6 +7,7 @@ namespace Friendica\Module;
|
|||
use Friendica\BaseModule;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Util\Strings;
|
||||
|
||||
require_once 'include/dba.php';
|
||||
require_once 'include/text.php';
|
||||
|
@ -21,7 +22,7 @@ class Hashtag extends BaseModule
|
|||
{
|
||||
$result = [];
|
||||
|
||||
$t = escape_tags($_REQUEST['t']);
|
||||
$t = Strings::escapeTags($_REQUEST['t']);
|
||||
if (empty($t)) {
|
||||
System::jsonExit($result);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue