mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 01:35:12 +00:00
add data url type to purifier and add tasklist to display module
This commit is contained in:
parent
48f6990315
commit
5b9ae23f3e
2 changed files with 12 additions and 0 deletions
|
@ -176,6 +176,17 @@ function purify_html($s, $opts = [])
|
|||
// disable Unicode version of RTL over-ride
|
||||
$s = str_replace([ '‮', '‮', html_entity_decode('‮', ENT_QUOTES, 'UTF-8') ], [ '','','' ], $s);
|
||||
|
||||
$config->set('URI.AllowedSchemes', [
|
||||
'data' => true, // This likely won't federate very well, but it has some interesting use cases.
|
||||
'http' => true,
|
||||
'https' => true,
|
||||
'mailto' => true,
|
||||
'ftp' => true, // This is kind of dubious in 2024, but we'll let it go
|
||||
'nntp' => false, // he's dead jim
|
||||
'news' => false, // he's dead jim
|
||||
'tel' => true,
|
||||
// @todo create scheme definitions for geo: and ap: and did:
|
||||
]);
|
||||
|
||||
// This will escape invalid tags in the output instead of removing.
|
||||
// This is necessary for mixed format (text+bbcode+html+markdown) messages or
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
[region=aside]
|
||||
[widget=vcard][/widget]
|
||||
[widget=tasklist][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[widget=notifications][/widget]
|
||||
|
|
Loading…
Reference in a new issue