From 648051f07cffd0d91c89dc6706e3d0d6a286de43 Mon Sep 17 00:00:00 2001 From: Steven Liu Date: Wed, 29 Apr 2020 12:50:57 +0800 Subject: 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 --- tests/ref/fate/url | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') 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 -- cgit v1.2.3