Skip to content

Commit

Permalink
Updated to 1.1.9 version
Browse files Browse the repository at this point in the history
  • Loading branch information
josantonius committed Jan 7, 2018
1 parent f61e45e commit 4fbf4f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,13 @@ public static function addBackSlash($uri, $position = 'end')
{
switch ($position) {
case 'top':
$uri = '/' . ltrim($uri . '/');
$uri = '/' . ltrim($uri, '/');
break;
case 'end':
$uri = rtrim($uri . '/') . '/';
$uri = rtrim($uri, '/') . '/';
break;
case 'both':
$uri = '/' . trim($uri . '/') . '/';
$uri = '/' . trim($uri, '/') . '/';
break;
default:
$uri = false;
Expand Down

0 comments on commit 4fbf4f3

Please sign in to comment.