After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 732112 - Handling of data URI with no MIME type
Handling of data URI with no MIME type
Status: RESOLVED FIXED
Product: libsoup
Classification: Core
Component: API
unspecified
Other Linux
: Normal normal
: ---
Assigned To: libsoup-maint@gnome.bugs
libsoup-maint@gnome.bugs
Depends on:
Blocks:
 
 
Reported: 2014-06-23 15:21 UTC by Raveendra Karu
Modified: 2014-07-21 15:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for handling data URI with no MIME type (1.18 KB, patch)
2014-06-23 15:54 UTC, Raveendra Karu
committed Details | Review

Description Raveendra Karu 2014-06-23 15:21:37 UTC
If a data URI request with no MIME type is sent to libsoup, data is not decoded properly as this case missed in soup_request_data_send api.

ex: data:[<mediatype>][;base64],<data>

If <mediatype> is NULL in the above URI, even though base64 encoding mentioned, data is not decoded according to that.
Comment 1 Raveendra Karu 2014-06-23 15:54:11 UTC
Created attachment 279049 [details] [review]
Patch for handling data URI with no MIME type

Attached patch here, couldn't commit in master branch because of permissions.
Could you please mention the origin and branch so that I can submit.
Comment 2 Dan Winship 2014-07-21 15:57:22 UTC
thanks