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

Backtrack limit was exhausted with base64 encoded image #79

Open
dakorpar opened this issue Dec 28, 2020 · 2 comments
Open

Backtrack limit was exhausted with base64 encoded image #79

dakorpar opened this issue Dec 28, 2020 · 2 comments

Comments

@dakorpar
Copy link

dakorpar commented Dec 28, 2020

Version: 3.1.5

Bug Description

Whenever there is a bigger base64 encoded image in E-mail we get this exception:
image

Steps To Reproduce

It's clear from bug description

Additional

I'm not sure how to even solve this, avoiding Regex if possible would maybe be best since we never know how big e-mail can be and with base64 encoded images this can become huge quickly...
I know I can set bigger limit, but then again how much memory will it use and when will we hit it again...
Probably only proper solution here would be to add image as attachment and not base64 encoded...
I've managed to avoid issue in this particular mail since we're not using any images so I just set basePath as null so it doesn't go into this part of code, but obviously that's not a solution...

@dg
Copy link
Member

dg commented Dec 28, 2020

As a workaround, don't pass second argument to setHtmlBody() to avoid regexp.

@dakorpar
Copy link
Author

Yeah I did that in this case... Last sentence

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

2 participants