Skip to content

Commit 4fbf4f3

Browse files
committed
Updated to 1.1.9 version
1 parent f61e45e commit 4fbf4f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Url.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,13 @@ public static function addBackSlash($uri, $position = 'end')
183183
{
184184
switch ($position) {
185185
case 'top':
186-
$uri = '/' . ltrim($uri . '/');
186+
$uri = '/' . ltrim($uri, '/');
187187
break;
188188
case 'end':
189-
$uri = rtrim($uri . '/') . '/';
189+
$uri = rtrim($uri, '/') . '/';
190190
break;
191191
case 'both':
192-
$uri = '/' . trim($uri . '/') . '/';
192+
$uri = '/' . trim($uri, '/') . '/';
193193
break;
194194
default:
195195
$uri = false;

0 commit comments

Comments
 (0)