"escapeTags" is finally removed
This commit is contained in:
parent
f99d37d87e
commit
cfac13790b
11 changed files with 11 additions and 34 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue