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

SVG Filetype detection #645

Open
THenkeDE opened this issue Sep 11, 2023 · 3 comments · May be fixed by #646
Open

SVG Filetype detection #645

THenkeDE opened this issue Sep 11, 2023 · 3 comments · May be fixed by #646

Comments

@THenkeDE
Copy link

No description provided.

@THenkeDE
Copy link
Author

even in the latest 6.6.5 the detection of inline SVG seems broken.

Chainging Line 19016 of tcpdf.php

from
$type = '';

to
$type = preg_match('/<svg([^\>]*)>/si', $imgsrc) ? 'svg' : ''

seems to fix this.

@williamdes
Copy link
Contributor

Can you open a pull-request for that?

@THenkeDE
Copy link
Author

@williamdes did so just right now

@THenkeDE THenkeDE linked a pull request Sep 11, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants