vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Thu Aug 27 
19:10:36 2015 +0300| [9e52d838bdf50216fdfebf2cc5d34e51ef4cbb45] | committer: 
Rémi Denis-Courmont

url: test request parameters stripping

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9e52d838bdf50216fdfebf2cc5d34e51ef4cbb45
---

 src/test/url.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/test/url.c b/src/test/url.c
index d024180..698a45c 100644
--- a/src/test/url.c
+++ b/src/test/url.c
@@ -171,6 +171,10 @@ int main (void)
     test ("file:///", "/");
     test ("file://localhost/home/john/music%2Eogg", "/home/john/music.ogg");
     test ("file://localhost/home/john/text#ref", "/home/john/text");
+    test ("file://localhost/home/john/text?name=value", "/home/john/text");
+    test ("file://localhost/home/john/text?name=value#ref", "/home/john/text");
+    test ("file://?name=value", NULL);
+    test ("file:///?name=value", "/");
     test ("fd://0foobar", NULL);
     test ("fd://0#ref", "/dev/stdin");
     test ("fd://1", "/dev/stdout");

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to