X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Ftagrm.php;h=32cb19e691a461c97298e7b6300c79e6f53c8d00;hb=3d65809a82b5c357887f5b98ab722464a74ee828;hp=b60823e31a47bfb0aee2d31c061324addf854e31;hpb=3cef3ab107f87f999cf4adcc909259925a631cea;p=friendica.git diff --git a/mod/tagrm.php b/mod/tagrm.php index b60823e31a..32cb19e691 100644 --- a/mod/tagrm.php +++ b/mod/tagrm.php @@ -23,10 +23,8 @@ use Friendica\App; use Friendica\Content\Text\BBCode; use Friendica\Database\DBA; use Friendica\DI; -use Friendica\Model\Item; use Friendica\Model\Post; use Friendica\Model\Tag; -use Friendica\Util\Strings; function tagrm_post(App $a) { @@ -40,7 +38,7 @@ function tagrm_post(App $a) $tags = []; foreach ($_POST['tag'] ?? [] as $tag) { - $tags[] = hex2bin(Strings::escapeTags(trim($tag))); + $tags[] = hex2bin(trim($tag)); } $item_id = $_POST['item'] ?? 0; @@ -89,7 +87,7 @@ function tagrm_content(App $a) } if (DI::args()->getArgc()== 3) { - update_tags(DI::args()->getArgv()[1], [Strings::escapeTags(trim(hex2bin(DI::args()->getArgv()[2])))]); + update_tags(DI::args()->getArgv()[1], [trim(hex2bin(DI::args()->getArgv()[2]))]); DI::baseUrl()->redirect($photo_return); }