Skip to content

Commit

Permalink
Allow to show embed images
Browse files Browse the repository at this point in the history
This is initially for ckeditor5 that supports embedded images in
content.
  • Loading branch information
sunnavy committed Dec 29, 2023
1 parent 22733f8 commit ea997b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/RT/Interface/Web/Scrubber.pm
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ sub new {
# If we're displaying images, let embedded ones through
if ( !$RULES{'img'} && ( RT->Config->Get('ShowTransactionImages') or RT->Config->Get('ShowRemoteImages') ) ) {
my @src;
push @src, qr/^cid:/i
push @src, qr/^(?:cid|data):/i
if RT->Config->Get('ShowTransactionImages');

push @src, $ALLOWED_ATTRIBUTES{'href'}
Expand Down

0 comments on commit ea997b3

Please sign in to comment.