mirror of
https://github.com/friendica/friendica
synced 2025-04-23 08:30:10 +00:00
"escapeTags" is finally removed
This commit is contained in:
parent
f99d37d87e
commit
cfac13790b
11 changed files with 11 additions and 34 deletions
|
@ -48,7 +48,6 @@ class BaseSearch extends BaseModule
|
|||
*/
|
||||
public static function performContactSearch($search, $prefix = '')
|
||||
{
|
||||
$a = DI::app();
|
||||
$config = DI::config();
|
||||
|
||||
$type = Search::TYPE_ALL;
|
||||
|
|
|
@ -58,7 +58,7 @@ class Invite extends BaseModule
|
|||
|
||||
|
||||
$recipients = !empty($_POST['recipients']) ? explode("\n", $_POST['recipients']) : [];
|
||||
$message = !empty($_POST['message']) ? Strings::escapeTags(trim($_POST['message'])) : '';
|
||||
$message = !empty($_POST['message']) ? Strings::escapeHtml(trim($_POST['message'])) : '';
|
||||
|
||||
$total = 0;
|
||||
$invitation_only = false;
|
||||
|
|
|
@ -25,7 +25,6 @@ use Friendica\Content\Widget;
|
|||
use Friendica\DI;
|
||||
use Friendica\Module\BaseSearch;
|
||||
use Friendica\Module\Security\Login;
|
||||
use Friendica\Util\Strings;
|
||||
|
||||
/**
|
||||
* Directory search module
|
||||
|
@ -39,7 +38,7 @@ class Directory extends BaseSearch
|
|||
return Login::form();
|
||||
}
|
||||
|
||||
$search = Strings::escapeTags(trim(rawurldecode($_REQUEST['search'] ?? '')));
|
||||
$search = trim(rawurldecode($_REQUEST['search'] ?? ''));
|
||||
|
||||
if (empty(DI::page()['aside'])) {
|
||||
DI::page()['aside'] = '';
|
||||
|
|
|
@ -38,13 +38,12 @@ use Friendica\Model\Post;
|
|||
use Friendica\Model\Tag;
|
||||
use Friendica\Module\BaseSearch;
|
||||
use Friendica\Network\HTTPException;
|
||||
use Friendica\Util\Strings;
|
||||
|
||||
class Index extends BaseSearch
|
||||
{
|
||||
public static function content(array $parameters = [])
|
||||
{
|
||||
$search = (!empty($_GET['q']) ? Strings::escapeTags(trim(rawurldecode($_GET['q']))) : '');
|
||||
$search = (!empty($_GET['q']) ? trim(rawurldecode($_GET['q'])) : '');
|
||||
|
||||
if (DI::config()->get('system', 'block_public') && !Session::isAuthenticated()) {
|
||||
throw new HTTPException\ForbiddenException(DI::l10n()->t('Public access denied.'));
|
||||
|
@ -88,7 +87,7 @@ class Index extends BaseSearch
|
|||
$tag = false;
|
||||
if (!empty($_GET['tag'])) {
|
||||
$tag = true;
|
||||
$search = '#' . Strings::escapeTags(trim(rawurldecode($_GET['tag'])));
|
||||
$search = '#' . trim(rawurldecode($_GET['tag']));
|
||||
}
|
||||
|
||||
// contruct a wrapper for the search header
|
||||
|
|
|
@ -25,14 +25,13 @@ use Friendica\BaseModule;
|
|||
use Friendica\Core\Search;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Util\Strings;
|
||||
|
||||
class Saved extends BaseModule
|
||||
{
|
||||
public static function init(array $parameters = [])
|
||||
{
|
||||
$action = DI::args()->get(2, 'none');
|
||||
$search = Strings::escapeTags(trim(rawurldecode($_GET['term'] ?? '')));
|
||||
$search = trim(rawurldecode($_GET['term'] ?? ''));
|
||||
|
||||
$return_url = $_GET['return_url'] ?? Search::getSearchPath($search);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue