mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-01 04:49:36 +00:00
Added basic functionality for an HTML sandbox for relative safely rendering HTML attachments
Fixed #1150
This commit is contained in:
parent
a7a1026f9b
commit
63dd344c02
4 changed files with 161 additions and 26 deletions
|
|
@ -58,4 +58,11 @@ class AttachmentsSettings
|
|||
envVar: "bool:ATTACHMENT_DOWNLOAD_BY_DEFAULT", envVarMode: EnvVarMode::OVERWRITE
|
||||
)]
|
||||
public bool $downloadByDefault = false;
|
||||
}
|
||||
|
||||
#[SettingsParameter(
|
||||
label: new TM("settings.system.attachments.showHTMLAttachments"),
|
||||
description: new TM("settings.system.attachments.showHTMLAttachments.help"),
|
||||
envVar: "bool:ATTACHMENT_SHOW_HTML", envVarMode: EnvVarMode::OVERWRITE
|
||||
)]
|
||||
public bool $showHTMLAttachments = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue