Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If there is a <base> #719

Open
serjsv87 opened this issue Feb 8, 2024 · 0 comments
Open

If there is a <base> #719

serjsv87 opened this issue Feb 8, 2024 · 0 comments

Comments

@serjsv87
Copy link

serjsv87 commented Feb 8, 2024

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,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant