We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
6.3
cat /etc/os-release
POST with the following payload:
POST
{ "ticket_id": 1, "subject": "My article with inline image.", "body": "this is an inline image: <img src=\"data:image/jpg;base64,<my_base64_string_here>\">", "content_type": "text/html", "type": "note", "internal": "true" }
results in:
body: "this is an inline image: <img src=\"data:image/jpg;base64,<my_base64_string_here>\">",
body: "this is an inline image: <img src=\"cid:1.a66af266-3a23-48ac-aa23-371a869ba56f@my_fqdn.example.com\">",
For reproduction steps, see above.
/opt/zammad/lib/html_sanitizer/scrubber/inline_images.rb
18c18 < if node['src'] && node['src'] =~ %r{^(data:image/(jpeg|png);base64,.+?)$}i --- > if node['src'] && node['src'] =~ %r{^(data:image/(jpg|jpeg|png);base64,.+?)$}i 32c32 < matchdata = src.match %r{^(data:image/(jpeg|png);base64,.+?)$}i --- > matchdata = src.match %r{^(data:image/(jpg|jpeg|png);base64,.+?)$}i
No response
yes
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Used Zammad Version
6.3
Environment
cat /etc/os-release
): anyActual behaviour
POST
with the following payload:results in:
Expected behaviour
Steps to reproduce the behaviour
For reproduction steps, see above.
Steps to fix the behaviour:
/opt/zammad/lib/html_sanitizer/scrubber/inline_images.rb
Support Ticket
No response
I'm sure this is a bug and no feature request or a general question.
yes
The text was updated successfully, but these errors were encountered: