• Milan Crha's avatar
    "Save Image..." fails on shown attached image in message preview · 0f12f652
    Milan Crha authored
    The image had been stored as "data:image/...;base64;<data>", which
    the context menu Save Image and Copy Image could not handle. This
    resulted in a lengthy error message, which could cause a crash.
    This commit fixes several things:
    a) replace "data:" URI-s with "mail://" URI-s, which means less resources
       are needed; it also fixes the Save/Copy Image actions as a side effect;
    b) fix memory leak for tiff images;
    c) let to Save/Copy Image handle base64-encoded "data:" URI-s (as
       the source HTML message can still contain them);
    d) shorten the URI in the error message when it's too long;
    e) pass also "filename" into the URI, thus the Save Image has prefilled it,
       the same as attachment's "Save as" action.
    
    Reported downstream at:
    https://bugzilla.redhat.com/show_bug.cgi?id=1657361
    0f12f652
Name
Last commit
Last update
cmake Loading commit data...
data Loading commit data...
docs Loading commit data...
flatpak Loading commit data...
help Loading commit data...
po Loading commit data...
src Loading commit data...
tests Loading commit data...
win32 Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CMakeLists.txt Loading commit data...
COPYING Loading commit data...
COPYING-DOCS Loading commit data...
COPYING-DOCS.CCBYSA Loading commit data...
COPYING-DOCS.GFDL Loading commit data...
COPYING.LGPL2 Loading commit data...
COPYING.LGPL3 Loading commit data...
COPYING.OPENLDAP Loading commit data...
ChangeLog Loading commit data...
HACKING Loading commit data...
MAINTAINERS Loading commit data...
NEWS Loading commit data...
NEWS-1.0 Loading commit data...
README Loading commit data...
README.translators Loading commit data...
config.h.in Loading commit data...
evolution-calendar.pc.in Loading commit data...
evolution-mail.pc.in Loading commit data...
evolution-shell.pc.in Loading commit data...
evolution.doap Loading commit data...
iconv-detect.c Loading commit data...