mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-03-05 22:49:48 +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) {
|
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']);
|
$this->app->Tpl->Set("TEXT",$messages[0]['text']);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user