Merge pull request #6400 from annando/issue-6394

Issue 6394: The contact location has to be BBEncoded
This commit is contained in:
Hypolite Petovan
2019-01-06 16:37:43 -05:00
committed by GitHub
10 changed files with 13 additions and 9 deletions

View File

@@ -514,6 +514,10 @@ class Profile
$p['address'] = $p['location'];
}
if (isset($p['address'])) {
$p['address'] = BBCode::convert($p['address']);
}
if (isset($p['photo'])) {
$p['photo'] = ProxyUtils::proxifyUrl($p['photo'], false, ProxyUtils::SIZE_SMALL);
}

View File

@@ -642,7 +642,7 @@ class Contact extends BaseModule
'$profileurllabel'=> L10n::t('Profile URL'),
'$profileurl' => $contact['url'],
'$account_type' => Model\Contact::getAccountType($contact),
'$location' => $contact['location'],
'$location' => BBCode::convert($contact['location']),
'$location_label' => L10n::t('Location:'),
'$xmpp' => BBCode::convert($contact['xmpp']),
'$xmpp_label' => L10n::t('XMPP:'),