mirror of
https://github.com/friendica/friendica
synced 2025-04-26 23:50:11 +00:00
Sanitize links before storing them
This commit is contained in:
parent
fe00a3893d
commit
061f43788c
4 changed files with 31 additions and 28 deletions
|
@ -96,6 +96,7 @@ class Media
|
|||
return false;
|
||||
}
|
||||
|
||||
$media['url'] = Network::sanitizeUrl($media['url']);
|
||||
$media = self::unsetEmptyFields($media);
|
||||
$media = DI::dbaDefinition()->truncateFieldsForTable('post-media', $media);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue