-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Draw images using data:// URIs no longer possible #1104
Comments
You can work around this by configuring a whitelist you are comfortable with on your host when initialising mPDF: b69be38 |
Cool, thanks for your reply. This solves this issue. |
How can you achieve this? It has something to do with the server or the config file? I can't make it work with base64 streams. :( |
@Bohemme this issue is closed and issues do not serve as general troubleshooting. Use Discussions or create a Stack Overflow question. |
I found this bug / would like to have this new functionality
Since mPDF 7.1.8 or since commit 20ff639 (PR #950) it's no longer possible to use a data:// URI as source of an image to draw. This is that commit fixe issue #949. Unfortunately instrad of implementing a blacklist disabling the phar:// wrapper, a whitelist only allowing http, https and file URIs as well as traditional paths has been implemented disabling any data:// URIs (as well as any other wrapper).
I would suggest changing to a blacklist strategy.
This is mPDF and PHP version and environment (server/fpm/cli etc) I am using
mPDF 7.1.8
PHP 7.0.33
Apache 2.4.18
This is a PHP code snippet I use
The text was updated successfully, but these errors were encountered: