From c4f1fecccbf094efc87190d8e634f4d4ed0bd8ad Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 21 Mar 2010 16:31:12 +0100 Subject: fix for URLs with index.php in it Signed-off-by: Florian Pritz --- system/application/models/file_mod.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/application/models/file_mod.php b/system/application/models/file_mod.php index 69494259b..bc2259622 100644 --- a/system/application/models/file_mod.php +++ b/system/application/models/file_mod.php @@ -97,9 +97,9 @@ class File_mod extends Model { $data = array(); if ($mode) { - $data['url'] = site_url().$id.'/'.$mode; + $data['url'] = site_url($id).'/'.$mode; } else { - $data['url'] = site_url().$id.'/'; + $data['url'] = site_url($id).'/'; } if (strstr($_SERVER['HTTP_USER_AGENT'], 'libcurl')) { @@ -168,7 +168,7 @@ class File_mod extends Model { && filesize($file) <= $this->config->item('upload_max_text_size') ) { $data['title'] = $filedata['filename']; - $data['raw_link'] = site_url().$id; + $data['raw_link'] = site_url($id); header("Content-Type: text/html\n"); echo $this->load->view('file/html_header', $data, true); // only rewrite if it's fast -- cgit v1.2.3-24-g4f1b