Commit 3c2312ce authored by Benjamin Otte's avatar Benjamin Otte

dataurisrc: Allow case-insensitive scheme

Quoting RFC 2396:

  For resiliency, programs interpreting URI should treat upper case
  letters as equivalent to lower case in scheme names (e.g., allow
  "HTTP" as well as "http").
parent 29557fe6
......@@ -334,7 +334,7 @@ gst_data_uri_src_set_uri (GstURIHandler * handler, const gchar * uri,
/* uri must be an URI as defined in RFC 2397
* data:[<mediatype>][;base64],<data>
if (strncmp ("data:", uri, 5) != 0)
if (g_ascii_strncasecmp ("data:", uri, 5) != 0)
goto invalid_uri;
uri += 5;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment