Fix bug where absolute paths with dots/double-dots were not collapsed.
[htmlpurifier/rdancer.git] / tests / HTMLPurifier / URIFilterHarness.php
bloba4ecd40bd1c73516f4d0568bf18880457eefb3c3
1 <?php
3 class HTMLPurifier_URIFilterHarness extends HTMLPurifier_URIHarness
6 protected function assertFiltering($uri, $expect_uri = true) {
7 $this->prepareURI($uri, $expect_uri);
8 $this->filter->prepare($this->config, $this->context);
9 $result = $this->filter->filter($uri, $this->config, $this->context);
10 $this->assertEitherFailOrIdentical($result, $uri, $expect_uri);