mirror of
https://github.com/friendica/friendica
synced 2025-04-26 11:10:11 +00:00
Link sanitation added to some more places
This commit is contained in:
parent
061f43788c
commit
3b0cc45588
2 changed files with 13 additions and 13 deletions
|
@ -125,7 +125,7 @@ class BBCode
|
|||
break;
|
||||
|
||||
case 'publisher_url':
|
||||
$data['provider_url'] = html_entity_decode($value, ENT_QUOTES, 'UTF-8');
|
||||
$data['provider_url'] = Network::sanitizeUrl(html_entity_decode($value, ENT_QUOTES, 'UTF-8'));
|
||||
break;
|
||||
|
||||
case 'author_name':
|
||||
|
@ -136,7 +136,7 @@ class BBCode
|
|||
break;
|
||||
|
||||
case 'author_url':
|
||||
$data['author_url'] = html_entity_decode($value, ENT_QUOTES, 'UTF-8');
|
||||
$data['author_url'] = Network::sanitizeUrl(html_entity_decode($value, ENT_QUOTES, 'UTF-8'));
|
||||
if ($data['provider_url'] == $data['author_url']) {
|
||||
$data['author_url'] = '';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue