use Friendica\Util\Crypto;
use Friendica\Util\Strings;
-require_once 'include/items.php';
-
function salmon_post(App $a, $xml = '') {
if (empty($xml)) {
Logger::log('new salmon ' . $xml, Logger::DATA);
- $nick = (($a->argc > 1) ? Strings::removeTags(trim($a->argv[1])) : '');
+ $nick = (($a->argc > 1) ? Strings::escapeTags(trim($a->argv[1])) : '');
$mentions = (($a->argc > 2 && $a->argv[2] === 'mention') ? true : false);
$r = q("SELECT * FROM `user` WHERE `nickname` = '%s' AND `account_expired` = 0 AND `account_removed` = 0 LIMIT 1",