diff --git a/core/lib/Foswiki/Configure/UI.pm b/core/lib/Foswiki/Configure/UI.pm index 700ae7f139..9a1cbaa17d 100755 --- a/core/lib/Foswiki/Configure/UI.pm +++ b/core/lib/Foswiki/Configure/UI.pm @@ -28,7 +28,9 @@ sub new { $this->{bin} = $1; my @root = File::Spec->splitdir( $this->{bin} ); pop(@root); - $this->{root} = File::Spec->catfile( @root, '' ); + # SMELL: Force a trailing separator - Linux and Windows are inconsistent + $this->{root} = File::Spec->catfile( @root, 'x' ); + chop $this->{root}; return $this; }