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

fix: base64 images not rendered inside of html #671

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions CHANGELOG.TXT
Expand Up @@ -280,7 +280,7 @@
- Bug item #956 "Monospaced fonts are not alignd at the baseline" was fixed.
- Bug item #964 "Problem when changing font size" was fixed.
- Bug item #969 "ImageSVG with radialGradient problem" was fixed.
- sRGB.icc file was replaced with the one from the Debian package icc-profiles-free (2.0.1+dfsg-1)
- sRGB.icc file was replaced with the one from the Debian package icc-profiles-free (2.0.1+dfsg-1)

6.0.091 (2014-08-13)
- Issue #325"Division by zero when css fontsize equals 0" was fixed.
Expand All @@ -289,7 +289,7 @@
- Starting from this version TCPDF is also available in GitHub at https://github.com/tecnickcom/TCPDF
- Function getmypid() was removed for better compatibility with shared hosting environments.
- Support for pulling SVG stroke opacity value from RGBa color was mergeg [adf006].
- Bug item #951 "HTML Table within TCPDF columns doesnt flow correctly on page break ..." was fixed.
- Bug item #951 "HTML Table within TCPDF columns doesnt flow correctly on page break ..." was fixed.

6.0.089 (2014-07-16)
- Bug item #948 "bottom line of rowspan cell not work correctly" was fixed.
Expand Down
3 changes: 3 additions & 0 deletions include/tcpdf_static.php
Expand Up @@ -1876,6 +1876,9 @@ public static function file_exists($filename) {
if (preg_match('|^https?://|', $filename) == 1) {
return self::url_exists($filename);
}
if (stripos($filename, 'data:') === 0) {
return true;
}
if (strpos($filename, '://')) {
return false; // only support http and https wrappers for security reasons
}
Expand Down