Skip to content

Commit

Permalink
Fix issue #122
Browse files Browse the repository at this point in the history
  • Loading branch information
narfbg committed Nov 1, 2012
1 parent d1097a1 commit 254735e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion system/core/URI.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -696,7 +696,14 @@ public function uri_string()
*/ */
public function ruri_string() public function ruri_string()
{ {
return implode('/', $this->rsegment_array()); global $RTR;

if (($dir = $RTR->fetch_directory()) === '/')
{
$dir = '';
}

return $dir.implode('/', $this->rsegment_array());
} }


} }
Expand Down
1 change: 1 addition & 0 deletions user_guide_src/source/changelog.rst
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ Bug fixes for 3.0
- Fixed a bug (#658) - :doc:`Routing <general/routing>` wildcard **:any** didn't work as advertised and matched multiple URI segments instead of all characters within a single segment. - Fixed a bug (#658) - :doc:`Routing <general/routing>` wildcard **:any** didn't work as advertised and matched multiple URI segments instead of all characters within a single segment.
- Fixed a bug (#1938) - :doc:`Email Library <libraries/email>` removed multiple spaces inside a pre-formatted plain text message. - Fixed a bug (#1938) - :doc:`Email Library <libraries/email>` removed multiple spaces inside a pre-formatted plain text message.
- Fixed a bug (#388, #705) - :doc:`URI Library <libraries/uri>` didn't apply URL-decoding to URI segments that it got from **REQUEST_URI** and/or **QUERY_STRING**. - Fixed a bug (#388, #705) - :doc:`URI Library <libraries/uri>` didn't apply URL-decoding to URI segments that it got from **REQUEST_URI** and/or **QUERY_STRING**.
- Fixed a bug (#122) - :doc:`URI Library <libraries/uri>` method ``ruri_string()`` didn't include a directory if one is used.


Version 2.1.3 Version 2.1.3
============= =============
Expand Down

0 comments on commit 254735e

Please sign in to comment.