After updating module from 7.x-1.2 to 7.x-1.3 all base64 images are broken.
It removes "data:" from beginning of base64 code.
<img src="image/png;base64,
It need to be like that <img src="data:image/png;base64,

Also find reason why it's like that.
When I change print.pages.inc file line 422 andr remove filter_xss_admin() it works again.
return filter_xss_admin($ret);

Comments

mikkmiggur created an issue. See original summary.

mikkmiggur’s picture

Issue summary: View changes
Quyen bui’s picture

My solution is add a new protocol called "data" into the variable filter_allowed_protocols. You can see the function drupal_strip_dangerous_protocols for more informations