Rename removeTags to escapeTags
rename function and update calls.
This commit is contained in:
@@ -25,7 +25,7 @@ function unfollow_post(App $a)
|
||||
}
|
||||
|
||||
$uid = local_user();
|
||||
$url = Strings::removeTags(trim(defaults($_REQUEST, 'url', '')));
|
||||
$url = Strings::escapeTags(trim(defaults($_REQUEST, 'url', '')));
|
||||
|
||||
$condition = ["`uid` = ? AND (`rel` = ? OR `rel` = ?) AND (`nurl` = ? OR `alias` = ? OR `alias` = ?)",
|
||||
$uid, Contact::SHARING, Contact::FRIEND, Strings::normaliseLink($url),
|
||||
@@ -80,7 +80,7 @@ function unfollow_content(App $a)
|
||||
}
|
||||
|
||||
$uid = local_user();
|
||||
$url = Strings::removeTags(trim($_REQUEST['url']));
|
||||
$url = Strings::escapeTags(trim($_REQUEST['url']));
|
||||
|
||||
$condition = ["`uid` = ? AND (`rel` = ? OR `rel` = ?) AND (`nurl` = ? OR `alias` = ? OR `alias` = ?)",
|
||||
local_user(), Contact::SHARING, Contact::FRIEND, Strings::normaliseLink($url),
|
||||
|
||||
Reference in New Issue
Block a user