mirror of
https://github.com/friendica/friendica
synced 2024-12-23 04:00:15 +00:00
open provider-url in new tab
This commit is contained in:
parent
c450a7a757
commit
4aaa5a6a46
1 changed files with 2 additions and 2 deletions
|
@ -698,9 +698,9 @@ class BBCode
|
|||
|
||||
if (!empty($data['provider_url']) && !empty($data['provider_name'])) {
|
||||
if (!empty($data['author_name'])) {
|
||||
$return .= sprintf('<sup><a href="%s">%s (%s)</a></sup>', $data['provider_url'], $data['author_name'], $data['provider_name']);
|
||||
$return .= sprintf('<sup><a href="%s" target="_blank" rel="noopener noreferrer">%s (%s)</a></sup>', $data['provider_url'], $data['author_name'], $data['provider_name']);
|
||||
} else {
|
||||
$return .= sprintf('<sup><a href="%s">%s</a></sup>', $data['provider_url'], $data['provider_name']);
|
||||
$return .= sprintf('<sup><a href="%s" target="_blank" rel="noopener noreferrer">%s</a></sup>', $data['provider_url'], $data['provider_name']);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue