Debian Codegraph @

t/security/CVE-2026-86630.t

raw
1 use strict;
2 use warnings;
3 use Test::More;
4 use HTML::FormHandler::Render::Util ('process_attrs');
5
6 # explicitly test process_attrs because it's used in so many places in HFH
7
8 is(process_attrs({ class => '" onclick="alert(1)'}),
9 ' class="" onclick="alert(1)"',
10 "attribute value properly encoded according to HTML attribute context");
11
12 done_testing;