-
-
Notifications
You must be signed in to change notification settings - Fork 985
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
Default configuration not dompdf 3.1 friendly when using data-uris #1070
Comments
Also see changelog: https://github.com/dompdf/dompdf/releases/tag/v3.1.0
|
Can you update your the latest release? |
That would work but existing installs would have to update the config manually. |
When configuration is published - yes. This change must be mentioned in release changelog of this package as an important change (when not even considering as a breaking change). |
I added a not the the changelog and release page; https://github.com/barryvdh/laravel-dompdf/releases/tag/v3.1.0 |
@barryvdh Thank you! 👍 |
Describe the bug
dompdf 3.1.0
now validates data-uris, which makes data-uris fail with the default config file as it doesn't have anydata://
entry in theallowed_protocols
config array:See discussion at dompdf/dompdf#3580
To Reproduce
Use the default config file, update composer, which will update
dompdf/dompdf
to 3.1Use a data-uri for an image in the view used to generate PDFs
Expected behavior
data-uris should continue working as they were with dompdf 3.0.2
Additional context
Imho, the example config file should have:
instead of
I reckon mentioning this in some release note on the next version would also help mitigating issues for those not noticing the
dompdf/dompdf
dependency gets updated and start breaking resources using data-uris.The text was updated successfully, but these errors were encountered: