mirror of
https://github.com/friendica/friendica
synced 2025-04-24 09:50:11 +00:00
Replace remaining instances with "allowlist", "denylist" and "blocklist"
This commit is contained in:
parent
530ff51898
commit
8eeb7807d3
6 changed files with 14 additions and 14 deletions
|
@ -1859,7 +1859,7 @@ class BBCode
|
|||
$text = preg_replace('#<([^>]*?)(src)="(?!' . implode('|', $allowed_src_protocols) . ')(.*?)"(.*?)>#ism',
|
||||
'<$1$2=""$4 data-original-src="$3" class="invalid-src" title="' . DI::l10n()->t('Invalid source protocol') . '">', $text);
|
||||
|
||||
// sanitize href attributes (only whitelisted protocols URLs)
|
||||
// sanitize href attributes (only allowlisted protocols URLs)
|
||||
// default value for backward compatibility
|
||||
$allowed_link_protocols = DI::config()->get('system', 'allowed_link_protocols', []);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue