mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-14 20:17:14 +01:00
ticket system show embedded cid images in ticket view (insecure view)
This commit is contained in:
parent
75bd00770c
commit
d294daa08b
@ -407,6 +407,12 @@ class Ticket {
|
||||
}
|
||||
|
||||
if ($insecure) {
|
||||
// Adjust cid images
|
||||
$attachments = $this->app->erp->GetDateiSubjektObjekt('Anhang','Ticket',$mid);
|
||||
foreach($attachments as $attachment) {
|
||||
$filename = $this->app->erp->GetDateiName($attachment);
|
||||
$messages[0]['text'] = str_replace($filename,'index.php?module=dateien&action=send&id='.$attachment,$messages[0]['text']);
|
||||
}
|
||||
$this->app->Tpl->Set("TEXT",$messages[0]['text']);
|
||||
} else {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user