]> granicus.if.org Git - curl/commit
dotdot: introducing dot file path cleanup
authorDaniel Stenberg <daniel@haxx.se>
Sat, 15 Jun 2013 21:47:02 +0000 (23:47 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 22 Jun 2013 12:15:07 +0000 (14:15 +0200)
commit7877619f856a04af0519e92780b1d6674a8ff3f7
tree6b1c1f0c5ef5761494be6d5d2851a6c196917898
parentec248b590df3ac2e6873ea9c7507eff8e5044825
dotdot: introducing dot file path cleanup

RFC3986 details how a path part passed in as part of a URI should be
"cleaned" from dot sequences before getting used. The described
algorithm is now implemented in lib/dotdot.c with the accompanied test
case in test 1395.

Bug: http://curl.haxx.se/bug/view.cgi?id=1200
Reported-by: Alex Vinnik
lib/Makefile.inc
lib/dotdot.c [new file with mode: 0644]
lib/dotdot.h [new file with mode: 0644]
lib/url.c
tests/data/Makefile.am
tests/data/test1231 [new file with mode: 0644]
tests/data/test1395 [new file with mode: 0644]
tests/unit/Makefile.inc
tests/unit/unit1395.c [new file with mode: 0644]