Skip to content

Commit

Permalink
Item8483: Force trailing separator for root path, windows and linux w…
Browse files Browse the repository at this point in the history
…ere inconsistent in File::Spec operation

git-svn-id: http://svn.foswiki.org/branches/Release01x00@6251 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed Feb 8, 2010
1 parent c620e08 commit e0e5882
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/lib/Foswiki/Configure/UI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e0e5882

Please sign in to comment.