Merge pull request #6330 from annando/issue-6329

Issue-6329: Prevent double encoding
pull/6331/head
Hypolite Petovan 2018-12-26 09:55:52 -05:00 zatwierdzone przez GitHub
commit 5620184c54
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 3 dodań i 5 usunięć

Wyświetl plik

@ -512,10 +512,8 @@ class Profile
$p['about'] = BBCode::convert($p['about']); $p['about'] = BBCode::convert($p['about']);
} }
if (isset($p['address'])) { if (empty($p['address']) && !empty($p['location'])) {
$p['address'] = BBCode::convert($p['address']); $p['address'] = $p['location'];
} elseif (isset($p['location'])) {
$p['address'] = BBCode::convert($p['location']);
} }
if (isset($p['photo'])) { if (isset($p['photo'])) {

Wyświetl plik

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