1
0
Fork 0

"escapeTags" is finally removed

This commit is contained in:
Michael 2021-11-07 09:18:25 +00:00
commit cfac13790b
11 changed files with 11 additions and 34 deletions

View file

@ -204,7 +204,7 @@ function photos_post(App $a)
}
// RENAME photo album
$newalbum = Strings::escapeTags(trim($_POST['albumname']));
$newalbum = trim($_POST['albumname']);
if ($newalbum != $album) {
Photo::update(['album' => $newalbum], ['album' => $album, 'uid' => $page_owner_uid]);
// Update the photo albums cache

View file

@ -32,7 +32,6 @@ use Friendica\Model\Item;
use Friendica\Model\Post;
use Friendica\Model\Tag;
use Friendica\Protocol\Activity;
use Friendica\Util\Strings;
use Friendica\Util\XML;
use Friendica\Worker\Delivery;
@ -42,15 +41,15 @@ function tagger_content(App $a) {
return;
}
$term = Strings::escapeTags(trim($_GET['term']));
$term = trim($_GET['term']);
// no commas allowed
$term = str_replace([',',' '],['','_'],$term);
$term = str_replace([',',' ', '<', '>'],['','_', '', ''], $term);
if (!$term) {
return;
}
$item_id = ((DI::args()->getArgc() > 1) ? Strings::escapeTags(trim(DI::args()->getArgv()[1])) : 0);
$item_id = ((DI::args()->getArgc() > 1) ? trim(DI::args()->getArgv()[1]) : 0);
Logger::notice('tagger: tag ' . $term . ' item ' . $item_id);