mirror of
https://github.com/friendica/friendica
synced 2025-04-23 23:50:12 +00:00
Rename removeTags to escapeTags
rename function and update calls.
This commit is contained in:
parent
063f0e9cb0
commit
218f0734be
51 changed files with 233 additions and 240 deletions
|
@ -76,7 +76,7 @@ function dfrn_request_post(App $a)
|
|||
if ((x($_POST, 'localconfirm')) && ($_POST['localconfirm'] == 1)) {
|
||||
// Ensure this is a valid request
|
||||
if (local_user() && ($a->user['nickname'] == $a->argv[1]) && (x($_POST, 'dfrn_url'))) {
|
||||
$dfrn_url = Strings::removeTags(trim($_POST['dfrn_url']));
|
||||
$dfrn_url = Strings::escapeTags(trim($_POST['dfrn_url']));
|
||||
$aes_allow = (((x($_POST, 'aes_allow')) && ($_POST['aes_allow'] == 1)) ? 1 : 0);
|
||||
$confirm_key = ((x($_POST, 'confirm_key')) ? $_POST['confirm_key'] : "");
|
||||
$hidden = ((x($_POST, 'hidden-contact')) ? intval($_POST['hidden-contact']) : 0);
|
||||
|
@ -270,7 +270,7 @@ function dfrn_request_post(App $a)
|
|||
}
|
||||
}
|
||||
|
||||
$real_name = x($_POST, 'realname') ? Strings::removeTags(trim($_POST['realname'])) : '';
|
||||
$real_name = x($_POST, 'realname') ? Strings::escapeTags(trim($_POST['realname'])) : '';
|
||||
|
||||
$url = trim($_POST['dfrn_url']);
|
||||
if (!strlen($url)) {
|
||||
|
@ -424,7 +424,7 @@ function dfrn_request_post(App $a)
|
|||
intval($uid),
|
||||
intval($contact_record['id']),
|
||||
((x($_POST,'knowyou') && ($_POST['knowyou'] == 1)) ? 1 : 0),
|
||||
DBA::escape(Strings::removeTags(trim(defaults($_POST, 'dfrn-request-message', '')))),
|
||||
DBA::escape(Strings::escapeTags(trim(defaults($_POST, 'dfrn-request-message', '')))),
|
||||
DBA::escape($hash),
|
||||
DBA::escape(DateTimeFormat::utcNow())
|
||||
);
|
||||
|
@ -498,7 +498,7 @@ function dfrn_request_content(App $a)
|
|||
return Login::form();
|
||||
}
|
||||
|
||||
$dfrn_url = Strings::removeTags(trim(hex2bin($_GET['dfrn_url'])));
|
||||
$dfrn_url = Strings::escapeTags(trim(hex2bin($_GET['dfrn_url'])));
|
||||
$aes_allow = x($_GET, 'aes_allow') && $_GET['aes_allow'] == 1 ? 1 : 0;
|
||||
$confirm_key = x($_GET, 'confirm_key') ? $_GET['confirm_key'] : "";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue