projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29557fe
)
dataurisrc: Allow case-insensitive scheme
author
Benjamin Otte
<otte@redhat.com>
Tue, 21 May 2019 15:15:52 +0000
(17:15 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Tue, 21 May 2019 15:15:52 +0000
(17:15 +0200)
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").
plugins/elements/gstdataurisrc.c
patch
|
blob
|
history
diff --git
a/plugins/elements/gstdataurisrc.c
b/plugins/elements/gstdataurisrc.c
index e35d012dd0630269da36cd076e2d930644624d0d..316966f5f2df61274dd76278bfd14e22bea84dfd 100644
(file)
--- a/
plugins/elements/gstdataurisrc.c
+++ b/
plugins/elements/gstdataurisrc.c
@@
-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 (
strn
cmp ("data:", uri, 5) != 0)
+ if (
g_ascii_strncase
cmp ("data:", uri, 5) != 0)
goto invalid_uri;
uri += 5;