View | Details | Raw Unified | Return to bug 40659
Collapse All | Expand All

(-)a/C4/Scrubber.pm (-1 / +5 lines)
Lines 88-94 my %scrubbertypes = ( Link Here
88
            },
88
            },
89
        ],
89
        ],
90
    },
90
    },
91
    opac => {
91
    opac_virtual_card => {
92
        allow => [
92
        allow => [
93
            qw(
93
            qw(
94
                div span h1 h2 h3 h4 h5 h6 p br
94
                div span h1 h2 h3 h4 h5 h6 p br
Lines 108-113 my %scrubbertypes = ( Link Here
108
                class => qr/^[\w\s\-_]+$/,
108
                class => qr/^[\w\s\-_]+$/,
109
                id    => qr/^[\w\-_]+$/,
109
                id    => qr/^[\w\-_]+$/,
110
            },
110
            },
111
            p => {
112
                class => qr/^[\w\s\-_]+$/,
113
                id    => qr/^[\w\-_]+$/,
114
            },
111
            'svg' => {
115
            'svg' => {
112
                'id'                  => qr/^[\w\-_]+$/,
116
                'id'                  => qr/^[\w\-_]+$/,
113
                'class'               => qr/^[\w\s\-_]+$/,
117
                'class'               => qr/^[\w\s\-_]+$/,
(-)a/opac/opac-virtual-card.pl (-1 / +1 lines)
Lines 76-82 my $content = C4::Letters::GetPreparedLetter( Link Here
76
    )
76
    )
77
);
77
);
78
78
79
my $scrubber = C4::Scrubber->new('opac');
79
my $scrubber = C4::Scrubber->new('opac_virtual_card');
80
my $scrubbed = $scrubber->scrub( $content->{content} );
80
my $scrubbed = $scrubber->scrub( $content->{content} );
81
81
82
$content->{content} = $scrubbed;
82
$content->{content} = $scrubbed;
(-)a/t/Scrubber.t (-2 / +1 lines)
Lines 322-328 subtest 'record_display profile tests' => sub { Link Here
322
    subtest 'opac profile tests' => sub {
322
    subtest 'opac profile tests' => sub {
323
        plan tests => 20;
323
        plan tests => 20;
324
324
325
        my $scrubber = C4::Scrubber->new('opac');
325
        my $scrubber = C4::Scrubber->new('opac_virtual_card');
326
326
327
        # Test basic allowed elements
327
        # Test basic allowed elements
328
        is(
328
        is(
329
- 

Return to bug 40659