From 8423daef056a0f4d13d52494d3ada6c606ace118 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Wed, 13 Aug 2008 23:19:38 -0400 Subject: [PATCH] Increase test coverage for MakeAbsolute. Signed-off-by: Edward Z. Yang --- tests/HTMLPurifier/URIFilter/MakeAbsoluteTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/HTMLPurifier/URIFilter/MakeAbsoluteTest.php b/tests/HTMLPurifier/URIFilter/MakeAbsoluteTest.php index 82e694e9..d691d3ca 100644 --- a/tests/HTMLPurifier/URIFilter/MakeAbsoluteTest.php +++ b/tests/HTMLPurifier/URIFilter/MakeAbsoluteTest.php @@ -55,6 +55,10 @@ class HTMLPurifier_URIFilter_MakeAbsoluteTest extends HTMLPurifier_URIFilterHarn $this->assertFiltering('.', 'http://example.com/foo/'); } + function testFilterRelativePathMultiDot() { + $this->assertFiltering('././foo/./bar/.././baz', 'http://example.com/foo/foo/baz'); + } + function testFilterRelativePathWithInternalDotDot() { $this->assertFiltering('../baz.txt', 'http://example.com/baz.txt'); } -- 2.11.4.GIT