From 2225339ece6ca6bf479abe3b176624fe98c034a2 Mon Sep 17 00:00:00 2001 From: David Flatz Date: Mon, 17 Feb 2014 18:16:12 +0100 Subject: don't get rid of common index file names in urls, we can't assume server configurations --- it_url.class | 3 --- 1 file changed, 3 deletions(-) (limited to 'it_url.class') diff --git a/it_url.class b/it_url.class index 2cebc62..d63e332 100644 --- a/it_url.class +++ b/it_url.class @@ -95,9 +95,6 @@ function it_url($url = null, $options = array()) $this->hostname = preg_replace('/^www\./', '', $this->realhostname); - # Get rid of common index file names - $url = preg_replace('#(^|/)(index\.[ps]?html?|index\.php[34]?|default\.aspx?)$#', '', $url); - $this->path = preg_replace('#^/$#', '', $url); if ($this->port != $protoport) -- cgit v1.2.3