add data url type to purifier and add tasklist to display module

This commit is contained in:
Mike Macgirvin 2024-06-22 08:45:32 +10:00
parent 48f6990315
commit 5b9ae23f3e
2 changed files with 12 additions and 0 deletions

View file

@ -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

View file

@ -1,5 +1,6 @@
[region=aside]
[widget=vcard][/widget]
[widget=tasklist][/widget]
[/region]
[region=right_aside]
[widget=notifications][/widget]