From 554576b6cfe79a91d37e14d3617ca417562085db Mon Sep 17 00:00:00 2001 From: Marton Balint Date: Mon, 3 Feb 2020 01:32:00 +0100 Subject: avformat/utils: make av_url_split search for hashmark as well to separate hostname RFC 3986 states that the generic syntax uses the slash ("/"), question mark ("?"), and number sign ("#") characters to delimit components that are significant to the generic parser's hierarchical interpretation of an identifier. Signed-off-by: Marton Balint --- tests/ref/fate/url | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/ref/fate/url b/tests/ref/fate/url index 8212c1131b..980b2ce1f9 100644 --- a/tests/ref/fate/url +++ b/tests/ref/fate/url @@ -22,3 +22,4 @@ http://server/foo/bar?param=value/with/slashes => http https://1l-lh.a.net/i/1LIVE_HDS@179577/master.m3u8 => https 1l-lh.a.net -1 /i/1LIVE_HDS@179577/master.m3u8 ftp://u:p%2B%2F2@ftp.pbt.com/ExportHD.mpg => ftp u:p%2B%2F2 ftp.pbt.com -1 /ExportHD.mpg https://key.dns.com?key_id=2&model_id=12345&&access_key= => https key.dns.com -1 ?key_id=2&model_id=12345&&access_key= +http://example.com#tag => http example.com -1 #tag -- cgit v1.2.3