You are not logged in.
Hi,
Currently using glpi 9.2 and getting an problem with parsing email content while ticket generate.
I debug and found the problem with the below code, While we have image in mail body so that time it remove some content of mail.
File : ticket.class.php
Function : convertContentForTicket
Code :
preg_match_all("/src\s*=\s*['|\"](.+?)['|\"]/", $html, $matches, PREG_PATTERN_ORDER);
if (isset($matches[1]) && count($matches[1])) {
// Get all image src
foreach ($matches[1] as $src) {
// Set tag if image matches
foreach ($files as $data => $filename) {
if (preg_match("/".$data."/i", $src)) {
$html = preg_replace("`<img.*src=['|\"]".$src."['|\"][^>]*\>`", "<p>".Document::getImageTag($tags[$filename])."</p>", $html);
}
}
}
}
Thanks,
Vaibhav
Offline