use Friendica\App;
use Friendica\Core\Logger;
-use Friendica\Core\System;
use Friendica\Model\FileTag;
use Friendica\Util\XML;
{
if (! local_user())
{
- killme();
+ exit();
}
$term = XML::unescape(trim($_GET['term']));
Logger::log('filerm: tag ' . $term . ' item ' . $item_id . ' category ' . ($category ? 'true' : 'false'));
- if ($item_id && strlen($term))
- {
- if (FileTag::unsaveFile(local_user(), $item_id, $term, $category)){
+ if ($item_id && strlen($term)) {
+ if (FileTag::unsaveFile(local_user(), $item_id, $term, $category)) {
info('Item removed');
}
}
info('Item was not deleted');
}
- $a->internalRedirect('/network?f=&file=' . $term);
- killme();
+ $a->internalRedirect('/network?f=&file=' . rawurlencode($term));
+ exit();
}