diff options
author | Steven Liu <lq@chinaffmpeg.org> | 2020-04-29 12:50:57 +0800 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2020-05-06 12:00:26 +0800 |
commit | 648051f07cffd0d91c89dc6706e3d0d6a286de43 (patch) | |
tree | 1686d7a346ee92816a424325a95e2a7215e697cc /tests/ref/fate/url | |
parent | 666dbe7aace54b103af09cd111a56822062528c1 (diff) | |
download | ffmpeg-648051f07cffd0d91c89dc6706e3d0d6a286de43.tar.gz |
avformat/url: check url root node when rel include double dot and trim double dot
fix ticket: 8625
and add testcase into url for double dot corner case
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Diffstat (limited to 'tests/ref/fate/url')
-rw-r--r-- | tests/ref/fate/url | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ref/fate/url b/tests/ref/fate/url index 980b2ce1f9..533ba2cb1e 100644 --- a/tests/ref/fate/url +++ b/tests/ref/fate/url @@ -3,6 +3,7 @@ Testing ff_make_absolute_url: /foo/bar baz => /foo/baz /foo/bar ../baz => /baz /foo/bar /baz => /baz + /foo/bar ../../../baz => /baz http://server/foo/ baz => http://server/foo/baz http://server/foo/bar baz => http://server/foo/baz http://server/foo/ ../baz => http://server/baz @@ -12,6 +13,10 @@ Testing ff_make_absolute_url: http://server/foo/bar?param=value/with/slashes /baz => http://server/baz http://server/foo/bar?param&otherparam ?someparam => http://server/foo/bar?someparam http://server/foo/bar //other/url => http://other/url + http://server/foo/bar ../../../../../other/url => http://server/other/url + http://server/foo/bar /../../../../../other/url => http://server/other/url + http://server/foo/bar /test/../../../../../other/url => http://server/other/url + http://server/foo/bar /test/../../test/../../../other/url => http://server/other/url Testing av_url_split: /foo/bar => -1 /foo/bar |