1
1
mirror of https://github.com/renbaoshuo/S2OJ.git synced 2025-02-22 22:06:30 +00:00

fix(web): allow <img> width attr

This commit is contained in:
Baoshuo Ren 2022-12-06 16:11:25 +08:00
parent 9efa58fc0b
commit 16d20b38f4
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

@ -437,6 +437,7 @@ class HTML {
$extra_allowed_html = [
'span' => ['data-realname' => 'Text', 'data-uoj-username' => 'Number'],
'img' => ['width' => 'Text'],
];
foreach ($extra_allowed_html as $element => $attributes) {