mirror of
https://github.com/friendica/friendica
synced 2025-04-27 11:50:11 +00:00
"escapeTags" is finally removed
This commit is contained in:
parent
f99d37d87e
commit
cfac13790b
11 changed files with 11 additions and 34 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue