Skip to content

Commit 81aa94b

Browse files
author
Phil Sturgeon
committed
Reverted rui_string change.
This had knock-on effects as can be seen in bcit-ci#1306. Issue bcit-ci#122 has been reopend until it is fixed properly.
1 parent 3110a0a commit 81aa94b

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

system/core/Router.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -242,12 +242,9 @@ protected function _set_request($segments = array())
242242
$segments[1] = 'index';
243243
}
244244

245-
// This is being routed to a file in a sub directory
246-
$this->directory and array_unshift($segments, trim($this->directory, '/'));
247-
248245
// Update our "routed" segment array to contain the segments.
249246
// Note: If there is no custom routing, this array will be
250-
// identical to $this->uri->segments
247+
// identical to $this->uri->segments
251248
$this->uri->rsegments = $segments;
252249
}
253250

system/core/URI.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -645,10 +645,10 @@ public function uri_string()
645645
*/
646646
public function ruri_string()
647647
{
648-
return implode('/', $this->rsegment_array());
648+
return '/'.implode('/', $this->rsegment_array());
649649
}
650650

651651
}
652652

653653
/* End of file URI.php */
654-
/* Location: ./system/core/URI.php */
654+
/* Location: ./system/core/URI.php */

user_guide_src/source/changelog.rst

+2
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ Bug fixes for 3.0
204204
- Fixed a bug (#23, #1238) - delete_all() in the `Database Caching Library <database/caching>` used to delete .htaccess and index.html files, which is a potential security risk.
205205
- Fixed a bug in :doc:`Trackback Library <libraries/trackback>` method validate_url() where it didn't actually do anything, due to input not being passed by reference.
206206
- Fixed a bug (#11, #183, #863) - CI_Form_validation::_execute() silently continued to the next rule, if a rule method/function is not found.
207+
<<<<<<< HEAD
207208
- Fixed a bug (#122) Where routed uri string was being reported incorrectly in sub-directories
208209
- Fixed a bug (#1242) - read_dir() in the :doc:`Zip Library <libraries/zip>` wasn't compatible with Windows.
209210
- Fixed a bug (#306) - ODBC driver didn't have an _insert_batch() method, which resulted in fatal error being triggered when insert_batch() is used with it.
@@ -214,6 +215,7 @@ Bug fixes for 3.0
214215
- Fixed a bug in SQLSRV's delete() method where like() and limit() conditions were ignored.
215216
- Fixed a bug (#1265) - Database connections were always closed, regardless of the 'pconnect' option value.
216217
- Fixed a bug (#128) - :doc:`Language Library <libraries/language>` did not correctly keep track of loaded language files.
218+
- Fixed a bug (#1242) Added Windows path compatibility to function read_dir of ZIP library
217219

218220
Version 2.1.1
219221
=============

0 commit comments

Comments
 (0)