Skip to content

Commit 2474ecb

Browse files
authored
Should trim both "/" and "\\" (#188)
1 parent a8e971b commit 2474ecb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cachet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static function path(): string
5757
*/
5858
public static function dashboardPath(): string
5959
{
60-
return '/'.ltrim(config('cachet.dashboard_path', app()->joinPaths(rtrim(static::path(), '/'), 'dashboard')), '/');
60+
return '/'.ltrim(config('cachet.dashboard_path', app()->joinPaths(rtrim(static::path(), DIRECTORY_SEPARATOR), 'dashboard')), '/\\');
6161
}
6262

6363
/**

0 commit comments

Comments
 (0)