use Friendica\Util\Strings;
use Friendica\Util\XML;
-require_once 'include/items.php';
-
function poke_init(App $a)
{
if (!local_user()) {
return;
}
- $verb = Strings::removeTags(trim($_GET['verb']));
+ $verb = Strings::escapeTags(trim($_GET['verb']));
$verbs = L10n::getPokeVerbs();
return;
}
- $parent = (x($_GET,'parent') ? intval($_GET['parent']) : 0);
+ $parent = (!empty($_GET['parent']) ? intval($_GET['parent']) : 0);
Logger::log('poke: verb ' . $verb . ' contact ' . $contact_id, Logger::DEBUG);
$deny_gid = $item['deny_gid'];
}
} else {
- $private = (x($_GET,'private') ? intval($_GET['private']) : 0);
+ $private = (!empty($_GET['private']) ? intval($_GET['private']) : 0);
$allow_cid = ($private ? '<' . $target['id']. '>' : $a->user['allow_cid']);
$allow_gid = ($private ? '' : $a->user['allow_gid']);
]);
- $parent = (x($_GET,'parent') ? intval($_GET['parent']) : '0');
+ $parent = (!empty($_GET['parent']) ? intval($_GET['parent']) : '0');
$verbs = L10n::getPokeVerbs();