Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
mikkmiggur CreditAttribution: mikkmiggur commentedComment #3
Quyen bui CreditAttribution: Quyen bui commentedMy 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