Skip to content

Commit c3723fd

Browse files
committed
Updated to version 1.2.0
1 parent 97bdb63 commit c3723fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## 1.2.0 - 2018-02-22
44

5-
* Bug fixed on the `setUrlParams` method.
5+
* Bugs fixed in `getBaseUrl` and `setUrlParams` method.
66

77
## 1.1.9 - 2018-01-07
88

src/Url.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public static function addBackSlash($uri, $position = 'end')
189189
$uri = rtrim($uri, '/') . '/';
190190
break;
191191
case 'both':
192-
$uri = '/' . trim($uri, '/') . '/';
192+
$uri = ! empty($uri) ? '/' . trim($uri, '/') . '/' : '';
193193
break;
194194
default:
195195
$uri = false;

0 commit comments

Comments
 (0)