If there is a <base>
serjsv87 opened this issue · 0 comments
serjsv87 commented
If a client replied via email, and there is a <base ...> tag in the email, then in the end all links are taken starting from this tag and it is impossible to reply. I suggest a fix
uvdesk/core-framework/Services/TicketService.php
$dbTime = $threadDetails['createdAt'];
$formattedTime = $this->fomatTimeByPreference($dbTime,$timeZone,$timeFormat,$agentTimeZone,$agentTimeFormat);
+++++ $threadDetails['message'] = preg_replace('/<base[^>]*>/', '', $threadDetails['message']);
$threadResponse = [
'id' => $threadDetails['id'],
'user' => null,