mirror of
https://github.com/friendica/friendica
synced 2024-12-23 07:20:15 +00:00
Merge pull request #6323 from annando/issue-6316
Issue 6316: Do not double encode / Avoid notice
This commit is contained in:
commit
56d612b2f0
3 changed files with 3 additions and 3 deletions
|
@ -237,7 +237,7 @@ function notifications_content(App $a)
|
|||
|
||||
$notif_content[] = Renderer::replaceMacros($tpl, [
|
||||
'$type' => $notif['label'],
|
||||
'$header' => htmlentities($header),
|
||||
'$header' => $header,
|
||||
'$str_notifytype' => L10n::t('Notification type:'),
|
||||
'$notify_type' => $notif['notify_type'],
|
||||
'$dfrn_text' => $dfrn_text,
|
||||
|
|
|
@ -511,7 +511,7 @@ class Contact extends BaseModule
|
|||
$relation_text = '';
|
||||
}
|
||||
|
||||
$relation_text = sprintf($relation_text, htmlentities($contact['name']));
|
||||
$relation_text = sprintf($relation_text, $contact['name']);
|
||||
|
||||
$url = Model\Contact::magicLink($contact['url']);
|
||||
if (strpos($url, 'redir/') === 0) {
|
||||
|
|
|
@ -1378,7 +1378,7 @@ class PortableContact
|
|||
$info = defaults($data, 'info', '');
|
||||
$register_policy = defaults($data, 'register_policy', REGISTER_CLOSED);
|
||||
if (in_array($register_policy, ['REGISTER_CLOSED', 'REGISTER_APPROVE', 'REGISTER_OPEN'])) {
|
||||
$register_policy = constant($data['register_policy']);
|
||||
$register_policy = constant($register_policy);
|
||||
} else {
|
||||
Logger::log("Register policy '$register_policy' from $server_url is invalid.");
|
||||
$register_policy = REGISTER_CLOSED; // set a default value
|
||||
|
|
Loading…
Reference in a new issue